View unanswered posts | View active topics It is currently Fri May 25, 2018 5:24 am






Reply to topic  [ 1 post ] 
Mindsensors Pixycam Adapter 
Author Message
Rookie

Joined: Thu Jan 15, 2015 10:57 am
Posts: 9
Location: Italy
Post Mindsensors Pixycam Adapter
I recently purchased Pixycam adapter from Mindsensors and I'm testing it with Xander's drivers.
Anyone knows the value to enter to scale the blobs size from cam(I don't know cam resolution) to EV3 display?


Code:
// short xscale(short x) - Scales x values from camera coordinates to screen coordinates.
short xscale(short x) {
  return ((x - 12) * 99) / 175;
}

// short yscale(short y) - Scales y values from camera coordinates to screen coordinates.
short yscale(short y) {
  return ((143 - y) * 63) / 143;
}

_________________
for my blog I use the best hosting wordpress


Wed Jul 29, 2015 6:07 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.