Recently, our team has been working on our autonomous program. Our program is designed to drag the neutral mobile goal in front of where the robot has been placed back into the home zone.
Our program works perfectly up to the point where it is supposed to drive in reverse. After that point, the robot stops and doesn’t move backwards. I’ve tried almost every solution under the sun, and nothing has worked. If anyone has any ideas on what could be going wrong, please share!
Most likely, it is getting “stuck” on the “drive forward line for 50 inches” because something physically stops the robot from going the full 50 inches…so it just sits there waiting.
Add some diagnostics to test your code. In the example below I added Print to screen and a Play Sound. If the code is working it should play a sound before moving in reverse. If it doesn’t then there is a problem in the code before the sound.
have you tried just making the motors run reverse by itself? than slowly adding back the code until it doesn’t work? i know it can be quite tedious, but that is how i have fixed problems that no one could find.
If you have a inertial sensor it might need a few seconds before you run the auton to let the sensor calibrate. My team has to let our program run for 2 seconds before we can run the program.
Yeah, we have done that. I think in the end we’ve determined that it may be a problem with our encoders. We’ve been doing all sorts of testing, and in the end, nothing really works. It’s baffled us, our mentor, our sister team, and everyone we’ve talked too. Thank you all for your help, I really do appreciate it!