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

Adding passive (shorted) brake to FOC #561

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

betzuka
Copy link

@betzuka betzuka commented Nov 27, 2022

Added new low level FOC function mcpwm_foc_set_passive_brake() that shorts all phases through low side FETs, braking the motor. Intention is to use this for continuing to brake a propeller using zero power after actively stopping it using negative iq or other brake methods. If used at speed the braking effect maybe violent. It attempts to respect ABS_MAX_CURRENT and will raise a fault if exceeded.

The new function is exposed through lisp only at the moment.

@vedderb
Copy link
Owner

vedderb commented Dec 2, 2022

I will wait until after the release before including this one. I think it will be better to be in the running state and not use the current controller as that will allow tracking the RPM based on the measured currents. In the stopped state the currents for the observer are set to 0, so the RPM and position will not be tracked like this.

@Teslafly
Copy link
Contributor

Now that 6.02 has been released. should this be looked at again?

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

Successfully merging this pull request may close these issues.

None yet

3 participants