View Single Post
  #3   Spotlight this post!  
Unread 05-02-2008, 23:25
Jon Stratis's Avatar
Jon Stratis Jon Stratis is offline
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,753
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Problems with our driving

One thing our team is doing that seems to help a ton is using a cubic function: motor = (input - 127)^3/127^2 + 127

The real nice thing about this method is that when the joystick is at either extrema (0 or 255), your motor is at the extrema too... But moving the joystick a little moves the motors even less near the center. For example, plugging in 157 (only 30 'ticks' forward of the center of the joystick) gives you a motor output of something like 130. Basically, you make the robot less responsive to the joystick near the center, but gradually "ramp up" the responsiveness as you move the joystick out.