mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-20 03:13:44 +08:00
rover: skip to LAND on direct RTL activation
This commit is contained in:
committed by
Silvan Fuhrer
parent
f13f9b2240
commit
b78b063fd8
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user