Quote:
Originally Posted by RyanShoff
I agree hard coding calibration values is bad.
We put a button on the smart dashboard called 'zero encoders'. Pushing it stores the steering encoder positions to the roborio using Preferences. That way there is nothing hardcoded, and the same code will work on two different robots. If something mechanically changes on the bot, just set the wheels to straight, press the button, and the new offsets are stored.
|
That is essentially the same though. It requires the robot to be on and get comm for the sensor position to be saved.
Might not be enough time to do that in elims.