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

AP_Motors: Allow the user to control minimum PWM time when coming out of SAFE_DISARM #12319

Merged

Conversation

WickedShell
Copy link
Contributor

M_SAFE_DISARM allows you to ensure there are no pulses while disarmed. Depending upon the ESC you have you will need a minimum time at minimum throttle to enable the ESC to spin up. This introduces a parameter to control the ramp up time on the motor. The initial patch was done by @lthall I did the bench testing of it and had to add a patch to restore a regression around sending pulses when it shouldn't be. The main change I introduced on top of what @lthall did was that when going into the shutdown state on the motors I removed the spool down time. I think this is actually appropriate though as while I need a second of the motor being at a low throttle to start the motors, I really don't want or need a second of minimum throttle when stopping the motors. And the act of disarming the aircraft already has the same effect of cutting the throttle output so I think this is a safe path.

@tridge
Copy link
Contributor

tridge commented Sep 23, 2019

need to test this doesn't affect spin up time when not using safe arm

@WickedShell
Copy link
Contributor Author

Using a saleae I see no increase in time for the PWM to come up when this is turned off, and the signal looks as expected.

@tridge tridge merged commit a80ff80 into ArduPilot:master Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants