As Im preping for Norcal sig event, our auton is drifting to the right even though it is told in the program to go forward. This is also happening in user control but isnt noticable, its only noticeable in the program. Some things I’ve tried to do was;
Make sure the shafts are in the motor proper
Tested Auton on a Completely Flat surface
Replace Inertial and Brain(Brain is updated to latest Firmware also)
If you have had a similar problem and overcome please share some ideas.
Thanks for helping - 27301D
Try bracing the robot. One side of the robot might be slanted just a little bit, causing the robot to move at an angle rather than going straight. If that doesn’t work, then try checking each motor one by one. A motor might be slower than another. If all the motors are at the same speed, then your last hope is to check the drive train’s friction. If one side of the drive train has more friction than the other, then it might slow down that side, causing the robot to slightly drift.
Are you using the built in Vex drivetrain controller in your code? If not, and you have your own drive PID, I’d recommend including a second PID controller into the function that holds the robot at the angle it starts at. This means that, while the robot drives, it’ll keep it self driving along a straight line.
This could be a lot of things. Weight distribution, friction in axels, motor issues, code problems, like what Mano said, your bracing, so just double check the robot and use the process of elimination.
It only changes the Lmotorpower based on the difference in motor sides. This keeps it mostly straight It has some flaws like you have to give it a 200 millisecond delay between turns and driving or else it corrects the turns overshoot (it causes it to go slightly not as far).
Sorry I have been not replying to the amazing information you guys have given me, I was on a trip that limited my Safari use on my phone and have left my computer at home. I have finally got a chance to read all of this and figured out what happened. I have 2 full length braces, but the front of the bot needed one because it was making the drive-train bend.