Rover: add missing Terminate action for Failsafe

This commit is contained in:
Pierre Kancir 2023-09-21 16:23:01 +02:00 committed by Peter Barker
parent 7dc0c567ce
commit 0029457dc6

View File

@ -101,6 +101,9 @@ void Rover::failsafe_trigger(uint8_t failsafe_type, const char* type_str, bool o
set_mode(mode_hold, ModeReason::FAILSAFE);
}
break;
case FailsafeAction::Terminate:
arming.disarm(AP_Arming::Method::FAILSAFE_ACTION_TERMINATE);
break;
}
}
}