Hello,
I am trying to modify the zumo chase code that came with my pixy2 to work with my zumo sumo robot. Our competition is very soon and I have yet to figure out how to integrate the line following sensors on the zumo bot with my pixy2. I am trying to get my robot to detct another robot in close proximity and chase him down. Since it is a sumo competition, I am also trying to utilize the line sensor to detect a black line so it keeps from exiting the sumo ring. Any help you can provide will be extremely appreciated!!!
You’ll need to integrate reading Pixy (e.g. getBlocks()) with reading your line sensor and then acting (moving motors) accordingly with both sets of sensor values or either sets. Will your robot move based on both sensors simultaneously or will your robot work using a “modal” method – using Pixy2 sensor values to move the robot, followed by using your line sensor to move the robot?