I’m currently competing at the VEX Worlds Championship and encountering a problem with my autonomous routine. It’s puzzling – it works perfectly during practice rounds, but once we’re in the competition, every turn seems off. I suspect it might have something to do with how I calibrated the inertial sensor.
Typically, I calibrate the sensor at the start and then run it in the main program. But here’s the catch: I’ve only used the competition switch on practice fields. Has anyone else faced this issue? Should I try calibrating the sensor directly in the autonomous routine, even if it means losing a few seconds?
Any advice or shared experiences would be greatly appreciated!
If I understand the issue correctly, it can be solved by force waiting your code for 2 second at the beginning of pre-auton. To test in comp mode I would run the field control program on a bad brain.
That’s exactly what I’m doing, I’m calibrating the inertial in pre_auton and I run pre_auton() in main, but for some reason this doesn’t work in the competition.
Or maybe the problem is something else.
Make sure you aren’t moving the robot while the inertial is calibrating, which messes up calibration. Try turning on the program with the controller after you already set up the robot, so it will calibrate while sitting still.