|
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.
|