View Single Post
  #2   Spotlight this post!  
Unread 04-11-2010, 12:56
RCXRM RCXRM is offline
Registered User
FTC #0245
 
Join Date: Nov 2010
Rookie Year: 2007
Location: Sunshine Coast, BC Canada
Posts: 1
RCXRM is an unknown quantity at this point
Re: [FTC]: Deadbands (axis/motor power restrictions)

Here is the code we've used to create deadbands:

Code:
if((joystick.joy1_y1 < 5) && (joystick.joy1_y1 > -5)) joystick.joy1_y1 = 0;
motor[motorD]=joystick.joy1_y1;
Reply With Quote