mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-03 08:01:36 +08:00
navigator: don't reset descend WP in RTL
This commit is contained in:
@@ -90,8 +90,7 @@ RTL::update(struct position_setpoint_triplet_s *pos_sp_triplet)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((_rtl_state == RTL_STATE_CLIMB
|
if ((_rtl_state == RTL_STATE_CLIMB
|
||||||
|| _rtl_state == RTL_STATE_RETURN
|
|| _rtl_state == RTL_STATE_RETURN)
|
||||||
|| _rtl_state == RTL_STATE_DESCEND)
|
|
||||||
&& is_mission_item_reached()) {
|
&& is_mission_item_reached()) {
|
||||||
advance_rtl();
|
advance_rtl();
|
||||||
set_rtl_item(pos_sp_triplet);
|
set_rtl_item(pos_sp_triplet);
|
||||||
|
|||||||
Reference in New Issue
Block a user