Quote:
Originally posted by Clanat
What do teams calibrate the victors for?
|
I'm going to try to explain this from a programming standpoint.
The speed controllers are already set to have a value of 127 being neutral, 255 full forward and 0 full reverse. However, if you look at the debug output by the joysticks, they usually hover around 245, because the plastic housing is in the way. Therefore, unless you calibrate the speed controllers, your robot will never see full power.
By calibrating, it sets the full power of the speed controller to be whatever you tell it to be. If you go into calibration mode, and move the joystick full forward and full reverse (example: joystick of 245 and 10), then those values will be the new range. Anything beyond those values will also be full forward (so it would still be safe to send it a value of 250).
Remember to return the joystick to center position before releasing the button, because the very last value it reads is recorded as neutral.