<< return to Pixycam.com

Functions and variables about pixy

I am a newbie in pixy.
Recently i am studying the code ccc_zumo chase in arduino pixy2.I am wondering where can i know the functions and variables appear in the code.Such as int16_t acquireBlock() ,Block *trackBlock(uint8_t index) and so on

Thank you for your reply in advance!

Hello,
I think you are asking what acquireBlock and trackBlock functions do?

acquireBlock finds a block that has been present in Pixy’s field-of-view for a half-second or so and then chooses it (it chooses its index number).

trackBlock then looks for that index number.

The code does this so that your robot will track a particular object, not the object in the frame that happens to be biggest for a few frames (for example).

Edward