|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Joystick Dead band
Hi everyone,
Can anyone tell me what code to write to put a dead band on the joysticks to make it less sensitive. Please tell me the code to make joystick 4 less sensitive anyway. This is urgent |
|
#2
|
||||
|
||||
|
i do believe that innovation first has that at their web site. i know that my fellow programmer didn't like their version, so he made up his own, but i'm not exactly sure how it works. i suggest going to http://www.innovationfirst.com/firstrobotics and clicking on the white papers, then go to the joystick filter code. cut and paste the code, and alter the variables to what you need. that's the best help i can give you.
|
|
#3
|
||||
|
||||
|
I'm not sure about the exact pbasic code, but here's the pseudo code:
if ((127 - DeadZone) > Joystick > (127 + DeadZone)) then Joystick = 127 You should perform that logic block before you use the joystick inputs in any calculations. Mike |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| So who's in band? | Ryan Foley | Chit-Chat | 34 | 10-05-2003 00:24 |
| Fried program slots? | Jeff Waegelin | Programming | 18 | 19-03-2003 18:08 |
| 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 |