
18-01-2007, 01:26
|
 |
 |
ohhh MY god
AKA: Dan Hoizner
 FRC #0375 (The Robotic Plague)
Team Role: Mentor
|
|
Join Date: Jan 2005
Rookie Year: 2004
Location: Staten Island, NY
Posts: 1,432
|
|
|
Re: Slow down teh motors!
Quote:
Originally Posted by sciencenerd
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 255 to this new value to get your new PWM signal. The robot will now be half as fast, and half as twitchy.
|
Shouldn't that be a 127, to bring the scale back to 0-255?
|