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 <thomas@wytron.com.tw>
- Loading branch information