Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

The servos don rotate and the robot just spins in circles. What are we doing wrong?

0
Posted

The servos don rotate and the robot just spins in circles. What are we doing wrong?

0

It sounds like you’re using the code in navigate.zip. The code in navigate.c centers the servos, blindly drives the ‘bot away from the diamond plate several inches, and then starts a counter-clockwise turn-in-place until the beacon comes into view of one of the sensors. Only then do the servos start tracking and the ‘bot drives toward the beacon. The turn-in-place is done to ensure that the beacon would be well within the servos range of travel before they were allowed to track. This sounds like the behavior you’re seeing. If all you want to do is try the trackers, upload tracker.hex (found in frc_tracker.zip) instead of navigate.hex.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123