Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement Request: active braking for PwmMotor #176

Open
sparry0407 opened this issue Jul 5, 2023 · 1 comment
Open

Enhancement Request: active braking for PwmMotor #176

sparry0407 opened this issue Jul 5, 2023 · 1 comment

Comments

@sparry0407
Copy link

Currently PwmMotor implements a coasting stop: when you set the speed to zero or stop it sets both the forward and backward channels of the bridge to zero, allowing the motor to continue freely rotating. Other implementations seem to include an active braking approach, allowing you to set both forward and backward channels to 1.0, which causes the wheels to stop dead and also helps keep the vehicle from rolling away. Could we please have a brake function? I have implemented a variation of PwmMotor for my own use, which appears to work well. The only hitch I found was that I had to add forward and backward stop calls to the close function to stop random wheel movements during close down.

@mattjlewis
Copy link
Owner

Will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants