View Single Post
  #2   Spotlight this post!  
Unread 07-02-2010, 00:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Limit motor speed

Do you want to limit the maximum speed, as if you had an extra stage of reduction in a gearbox? That's easily done by multiplying the joystick values by a number less than one. You lose the ability to apply full power if you do that, so it might be a good idea to include the option to leave the joystick values alone if a "turbo" button (e.g. the joystick trigger) is pressed by the driver.

Do you want to change the response of the joysticks so that they are more sensitive at low speeds, but still go to full power when pushed all the way? That's a little more difficult, but still straightforward. Try multiplying the joystick value by itself three times, yielding the cube of its value. That response curve is something many teams have used in the past.
Reply With Quote