ROBOTC.net forums
http://www.robotc.net/forums/

Mindsensors Pixycam Adapter
http://www.robotc.net/forums/viewtopic.php?f=1&t=11793
Page 1 of 1

Author:  giuseppe.fava [ Wed Jul 29, 2015 6:07 am ]
Post subject:  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;
}

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/