Skip to content

Commit

Permalink
Commander: Failsafe: set clear condition for action Land like for RTL…
Browse files Browse the repository at this point in the history
… (OnModeChangeOrDisarm)

This change should be removed during the rebasing to a newer version of PX4-firmware.
  • Loading branch information
mehmetkillioglu committed Sep 9, 2024
1 parent 5d0d665 commit 237cbe0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/modules/commander/failsafe/failsafe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ FailsafeBase::ActionOptions Failsafe::fromNavDllOrRclActParam(int param_value)

case gcs_connection_loss_failsafe_mode::Land_mode:
options.action = Action::Land;
options.clear_condition = ClearCondition::OnModeChangeOrDisarm;
break;

case gcs_connection_loss_failsafe_mode::Terminate:
Expand Down Expand Up @@ -113,6 +114,7 @@ FailsafeBase::ActionOptions Failsafe::fromGfActParam(int param_value)

case geofence_violation_action::Land_mode:
options.action = Action::Land;
options.clear_condition = ClearCondition::OnModeChangeOrDisarm;
break;

default:
Expand Down

0 comments on commit 237cbe0

Please sign in to comment.