Hi there! During the district event, I noticed that some folks had integrated an auto-balance feature for their Tank Drive robot. Since I’m currently programming a Tank Drive robot as well, I’m interested in implementing this feature too. However, I’m not sure how to get started with it.
Would you be able to provide me with a code sample and a basic explanation of how it works?
Additionally, I’m not sure if any extra tools are required to make it work, so any guidance on that would be appreciated. Thanks in advance!
We’ve been having difficulties with our auto code lately on a KoP tank chassis.
The latest iteration of it drives towards the charge station until the NavX detects a significant change in pitch, then drives up a bit more on a timer. We used to have a PID loop running on the pitch but that didn’t work so we went back to a janky time-based auto which did.