|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Calibration/Zeroing of Joystick
We are trying to use a different joystick then what came in the kit. Its center is not at (127, 127). We need a way to center. Right now, we have a button that is not on the joystick wired up so that we can press it and it will then be calibrated. We don't have the code to do this. Our code right now will add a constant (either pos. or neg) to the joystick values which would then in theory have the joystick centered. The problem comes in getting that constant. How can we keep a constant wth the looped structure of the FRC code? We have tried putting it in User_Initialization and also at the spot that where the inputs are mapped to the drive PWMs. Any help would be appreciated.
archimedes, Wyoming Aftershock |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tri-axis Analog Joystick | KVermilion | Control System | 5 | 19-01-2005 00:24 |
| Changing 1 joystick code to 2 (rookie team) | Brawler006 | Programming | 5 | 20-02-2004 17:00 |
| robot goes haywire with the one joystick default code | Miles | Programming | 7 | 24-01-2003 14:58 |
| joystick problem | archiver | 2000 | 12 | 23-06-2002 23:08 |
| switching joystick axis????? | team222badbrad | Technical Discussion | 9 | 16-01-2002 23:07 |