Thread: Robot Joysticks
View Single Post
  #13   Spotlight this post!  
Unread 04-01-2007, 15:44
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Robot Joysticks

Quote:
Originally Posted by Andy A. View Post
Before doing anything to change the joystick, I strongly encourage teams to calibrate the victor and joystick pair, as outlined in the Victor manual. Repeat this process anytime you change a joystick, Victor or when the controls don't feel 'right'. It's quick, easy and ensures that full forward on the stick means full forward on the motor.

-Andy A.
Interesting. I never knew that this was possible, and upon reading it, I am not sure that it is necessarily a very good thing.

I believe that by default, a Victor looks for a PWM pulse corresponding to 127 as neutral, 255 as full forwards, and 0 as full backwards. By recalibrating the Victor, you will adjust this calibration, which will give you better performance for that particular output/victor pairing.

However, this problem can be fixed in software instead of in hardware, leaving all of your Victors in the same known configuration. You can program your RC to output the joystick values, find the max and min, and write a little function to scale the joystick values to reach 255 and 0. This lets you adjust joystick behavior in software, and is very easy to see and change.

Maybe someone with more experience knows something I am overlooking?