Thread
:
Joystick Dead band
View Single Post
#
3
15-02-2002, 01:24
Mike Soukup
Software guy
FRC #0111 (Wildstang)
Team Role: Engineer
Join Date: May 2001
Rookie Year: 1996
Location: Schaumburg, IL
Posts: 797
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
Mike Soukup
View Public Profile
Visit Mike Soukup's homepage!
Find all posts by Mike Soukup
Find CD-Media Photos by Mike Soukup
Find CD-Media Papers by Mike Soukup