rover: skip to LAND on direct RTL activation

This commit is contained in:
chfriedrich98
2025-03-12 09:03:45 +01:00
committed by Silvan Fuhrer
parent f13f9b2240
commit b78b063fd8
+6 -1
View File
@@ -77,7 +77,12 @@ void RtlDirect::on_activation()
parameters_update();
_rtl_state = getActivationLandState();
if (_vehicle_status_sub.get().vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROVER) {
_rtl_state = RTLState::LAND;
} else {
_rtl_state = getActivationLandState();
}
// reset cruising speed and throttle to default for RTL
_navigator->reset_cruising_speed();