mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 03:11:35 +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();
|
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
|
// reset cruising speed and throttle to default for RTL
|
||||||
_navigator->reset_cruising_speed();
|
_navigator->reset_cruising_speed();
|
||||||
|
|||||||
Reference in New Issue
Block a user