View Single Post
  #1   Spotlight this post!  
Unread 28-03-2005, 22:20
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
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