I’m running the Pixy2 on an Arduino Uno using your ccc_pantilt.ino example. Seems to be working fine right out of the box which is great. I need to print the position of the pane & tilt servos.
Looks like this function is where the magic happens:
pixy.setServos(panLoop.m_command, tiltLoop.m_command);
I’ve been rooting around in the Pixy2.h and PIDLoop.h files to try and find if there is a variable that holds these values with no luck.
Any help would be greatly appreciated