forked from linorobot/linorobot2_hardware
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
motor: add short brake to reduce the distance to full stop
Result with USE_SHORT_BRAKE MOTOR1 SPEED 0.46 m/s 4.13 rad/s STOP 0.014 m Result without USE_SHORT_BRAKE MOTOR1 SPEED 0.46 m/s 4.10 rad/s STOP 0.135 m You can see that the distance to full stop is much longer without USE_SHORT_BRAKE. The robot might collide. And it might slide on a hill as motors are turned off. The short brake mode (aka slow decay) also provides better speed control. More details on the adafruit. https://learn.adafruit.com/improve-brushed-dc-motor-performance/current-decay-mode Signed-off-by: Thomas Chou <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters