<< return to Pixycam.com

X,y and width location coordinates in Arduino


When I use the pixy.ccc.blocks[i].m_x command in arduino IDE I should get a valua between 0 and 316 for the center of the detected object. When I print this value on the serial monitor of the arduino IDE I get instead a value more the 20.000.
The same with the y and width command. What do I wrong?



Hello Johan,
Perhaps your index (i) is out of bounds?

Can you post your code?