Quote:
Originally Posted by AdamHeard
Not having any magic numbers in code is magical.
|
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.