Plane: Handle EXIT_COMMANDED return status in soaring.

This commit is contained in:
Samuel Tabor 2020-09-07 13:00:21 +01:00 committed by Tom Pittenger
parent 861b57cb09
commit 9f5b068d9e
1 changed files with 3 additions and 0 deletions

View File

@ -147,6 +147,9 @@ void Plane::update_soaring() {
case SoaringController::LoiterStatus::DRIFT_EXCEEDED:
soaring_restore_mode("Drifted too far", ModeReason::SOARING_DRIFT_EXCEEDED, *exit_mode);
break;
case SoaringController::LoiterStatus::EXIT_COMMANDED:
soaring_restore_mode("Exit via RC switch", ModeReason::RC_COMMAND, *exit_mode);
break;
} // switch loiterStatus
break;