-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commander: fix parachute trigger #24349
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
Conversation
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: https://discuss.px4.io/t/servo-parachute-not-triggering/43742/3 |
I think there are a few things to untangle here.
Should we talk this through on the dev call? |
To me,
There, the drone in a special mode where the autopilot decided that the drone can't fly anymore and it's time for last resort measures (parachute, protect payload, self-destruct, ...). We could assume that it's not safe to be next to the drone when this occurs, so it shouldn't be able to override Yes, let's discuss that in the DevCall. |
This pull request has been mentioned on Discussion Forum for PX4, Pixhawk, QGroundControl, MAVSDK, MAVLink. There might be relevant details there: |
Setting "lockdown" disables the actuators. In this mode, "force_failsafe" has no effect as the actuators are disabled, so the parachute is not getting released as it requires the output to change to its failsafe value.
During the dev call we said that we should change the output failsafe behavior. Instead of having a failsafe PWM position for each actuator, we could have something more explicit (e.g.: rotors->stop, parachute->trigger, gimbal->look up/close bay). However, I can't work on this right now and we need a quick solution because right now the parachute doesn't work on main. Could we merge this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix makes sense independent of the further work, I agree.
Solved Problem
Setting
lockdown
disables the actuators. In this mode,force_failsafe
has no effect as the actuators are disabled, so the parachute is not getting released as it requires the output to change to its failsafe value.Solution
Only set the
force_failsafe
(notlockdown
) flag when in flight terminationAlternatives
We could change the priority in
PX4-Autopilot/src/lib/mixer_module/mixer_module.cpp
Lines 477 to 489 in 01549a5
Test coverage
Tested on a Pixhawk4 with parachute configured on channel 4 with a failsafe value of 1234. The autopilot is then armed and tilted by 90 degrees to trigger the attitude failure detection.
main:
This PR: