Thread: autonomous mode
View Single Post
  #4   Spotlight this post!  
Unread 31-01-2007, 13:38
mluckham's Avatar
mluckham mluckham is offline
Registered User
FRC #0758 (Sky Robotics)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Ontario, Canada
Posts: 116
mluckham will become famous soon enoughmluckham will become famous soon enough
Re: autonomous mode

Quote:
I want to add a dead zone on the joystick. so like the robot wont move the split second you touch the joystick
There is already a dead zone built into the Victor speed controllers. But whether you realize that or not, the joysticks must not be giving the response you want.

You could try something simple like this, to basically ignore the values near the centre of travel:

Code:
if ((joy >= 120) && (joy <= 140))  joy = 127;
Or a more sophisticated "exponential" method:

Code:
speed = joy - 127;
newspeed = ((speed * speed) / 127) * sign(speed);
I have attached a Labview 8 application that demonstrates various joystick response curves.

Good luck,

Mike
Attached Files
File Type: vi JoystickResponseCurves.vi (28.9 KB, 42 views)