|
Re: [FTC]: Deadbands (axis/motor power restrictions)
Another way to do it is
Code:
int threshold = 12;
motor[motorD] = (abs(joystick.joy1_y1) >= threshold) * joystick.joy1_y1;
...
This basically just zeroes any joystick value that is within a threshold of 0.
Last edited by coollog : 04-11-2010 at 19:09.
|