mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: optional (CHUTE_OPTIONS:1) disarm defore parachute release
This commit is contained in:
parent
6ae12729da
commit
a83c29cd67
|
@ -140,8 +140,6 @@ void Plane::failsafe_long_on_event(enum failsafe_state fstype, ModeReason reason
|
||||||
if(g.fs_action_long == FS_ACTION_LONG_PARACHUTE) {
|
if(g.fs_action_long == FS_ACTION_LONG_PARACHUTE) {
|
||||||
#if PARACHUTE == ENABLED
|
#if PARACHUTE == ENABLED
|
||||||
parachute_release();
|
parachute_release();
|
||||||
//stop motors to avoid parachute tangling
|
|
||||||
plane.arming.disarm(AP_Arming::Method::PARACHUTE_RELEASE, false);
|
|
||||||
#endif
|
#endif
|
||||||
} else if (g.fs_action_long == FS_ACTION_LONG_GLIDE) {
|
} else if (g.fs_action_long == FS_ACTION_LONG_GLIDE) {
|
||||||
set_mode(mode_fbwa, reason);
|
set_mode(mode_fbwa, reason);
|
||||||
|
@ -191,8 +189,6 @@ void Plane::failsafe_long_on_event(enum failsafe_state fstype, ModeReason reason
|
||||||
if(g.fs_action_long == FS_ACTION_LONG_PARACHUTE) {
|
if(g.fs_action_long == FS_ACTION_LONG_PARACHUTE) {
|
||||||
#if PARACHUTE == ENABLED
|
#if PARACHUTE == ENABLED
|
||||||
parachute_release();
|
parachute_release();
|
||||||
//stop motors to avoid parachute tangling
|
|
||||||
plane.arming.disarm(AP_Arming::Method::PARACHUTE_RELEASE, false);
|
|
||||||
#endif
|
#endif
|
||||||
} else if (g.fs_action_long == FS_ACTION_LONG_GLIDE) {
|
} else if (g.fs_action_long == FS_ACTION_LONG_GLIDE) {
|
||||||
set_mode(mode_fbwa, reason);
|
set_mode(mode_fbwa, reason);
|
||||||
|
|
Loading…
Reference in New Issue