The ActivityBot 360° can also be programmed to track a color signature on both the X and Y axis. This sample code allows the ActivityBot to center the object in the middle of the Pixy2 camera by driving left, right, forward and backward as shown in the video.
Download Pixy2_X-Y_Axis_Roaming.svg [1]
The Pixy2_X-Y_Axis_Roaming.svg project is a modified version of the original Pixy2_Terminal_Display.svg. The following changes were made:
Links
[1] https://learn.parallax.com/sites/default/files/content/AB-Blockly/Projects/Pixy2/Pixy2_X-Y-Axis_Roaming.svg