|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#24
|
|||
|
|||
|
Re: Desensitizing Joysticks
This is what I came up with during our team's meeting today after school:
/* pwm is a jostick value, 0-254 pwm_in is the pwm_out of the default code pwm_out is the new value going to the joysticks null_zone_swing_fraction is the amount you'd want the joystick to move without the motors kicking in. */ pwm_out = (pwm_in / (1-null_zone_swing_fraction)) - null_zone_swing_fraction(1 - null_zone_swing_fraction) So. Its quite simply a y = mx + b "transfer" function. enjoy. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming joysticks | NoRemorse | Programming | 29 | 24-02-2004 20:26 |
| number of joysticks | doy | Rules/Strategy | 5 | 01-02-2004 00:05 |
| Team 524 has Team 362's spare joysticks from last year. | archiver | 2001 | 0 | 24-06-2002 02:36 |
| Could use some help with joysticks . . . | archiver | 2001 | 5 | 23-06-2002 23:36 |
| Calibrating speed controllers and joysticks | thedillybar | Technical Discussion | 4 | 11-02-2002 13:24 |