View Single Post
  #4   Spotlight this post!  
Unread 18-01-2007, 01:13
sciencenerd's Avatar
sciencenerd sciencenerd is offline
ooh, what does this button do?
AKA: Kyle
FRC #1318 (the IRS (Issaquah Robotics Society))
Team Role: Coach
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Bellevue, Washington
Posts: 206
sciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud ofsciencenerd has much to be proud of
Re: Slow down teh motors!

Disclaimer: I've never done programming for a FIRST robot, although I have done it for other projects (including other robots) before.

The techniques described above would limit the maximum speed of the robot, but it sounds to me like you want a mode that would decrease the sensitivity of the controls at any range. I would take the PWM signal, subtract 127 (so the range is -127 to 127, not 0 to 255) and multiply that new number by a constant, say .5. I would then add 127 to this new value to get your new PWM signal. The robot will now be half as fast, and half as twitchy.

EDIT: I wasn't thinking/typing clearly.
__________________
Oh, maybe I shouldn't have pushed that...

Last edited by sciencenerd : 18-01-2007 at 21:53.