Skip to content

Commit

Permalink
Plane: mode_thermal: adjust messages to reference parameter names
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelctabor authored and tridge committed Jun 30, 2021
1 parent 0c38143 commit 5e5452c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ArduPlane/mode_thermal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ void ModeThermal::update_soaring()
// Heading lined up and loiter status not good to continue. Need to restore previous mode.
switch (loiterStatus) {
case SoaringController::LoiterStatus::ALT_TOO_HIGH:
restore_mode("Too high", ModeReason::SOARING_ALT_TOO_HIGH);
restore_mode("Reached SOAR_ALT_MAX", ModeReason::SOARING_ALT_TOO_HIGH);
break;
case SoaringController::LoiterStatus::ALT_TOO_LOW:
restore_mode("Too low", ModeReason::SOARING_ALT_TOO_LOW);
restore_mode("Reached SOAR_ALT_MIN", ModeReason::SOARING_ALT_TOO_LOW);
break;
default:
case SoaringController::LoiterStatus::THERMAL_WEAK:
restore_mode("Thermal ended", ModeReason::SOARING_THERMAL_ESTIMATE_DETERIORATED);
restore_mode("Climb below SOAR_VSPEED", ModeReason::SOARING_THERMAL_ESTIMATE_DETERIORATED);
break;
case SoaringController::LoiterStatus::DRIFT_EXCEEDED:
restore_mode("Drifted too far", ModeReason::SOARING_DRIFT_EXCEEDED);
restore_mode("Reached SOAR_MAX_DRIFT", ModeReason::SOARING_DRIFT_EXCEEDED);
break;
case SoaringController::LoiterStatus::EXIT_COMMANDED:
restore_mode("Exit via RC switch", ModeReason::RC_COMMAND);
Expand Down

0 comments on commit 5e5452c

Please sign in to comment.