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_ICEngine: don't run engine with safety engaged #28200

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

robertlong13
Copy link
Collaborator

@robertlong13 robertlong13 commented Sep 23, 2024

If you set the option bit for "allow throttle while disarmed", you can crank the starter even while the safety switch is engaged, and unless you use a servo pwm as your starter motor controller, you can't even configure it to not do that.

Some places use the allow_throttle_while_disarmed method, which additionally checks the safety switch. Other places directly check the options bit. So some stuff works with the safety engaged, and other parts don't. This PR just unifies everything to use the same check.

@peterbarker
Copy link
Contributor

Related: #25068

@peterbarker peterbarker merged commit 8797a07 into ArduPilot:master Sep 25, 2024
95 checks passed
@robertlong13 robertlong13 deleted the pr/ice-starter-safety branch September 25, 2024 23:38
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.

3 participants