|
Autocalibrate function
I think we can all agree in saying that this years joysticks were really lousy. Ours lost calibration even with tape on the wheels.
I want to write an auto calibration function for the sticks so they we can compensate for a reasonable error (say, 10 -15). I have been programming for years but i am rather new to C and more importantly, to the default code. The way i had in mind was to use the user initialization function to grab the values of the sticks (assume they are at center) and calculate offsets that would later be applied to the drive function. I realize that issues that can come up regarding the drive curve when doing this and i have already solved them. What i need to know is if joystick values can be read AT COMPETITIONS in the user initialization function.
Thanks ahead of time!!
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.
-Peggy Noonan
|