mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 10:03:35 +08:00
Navigator: Fix RTL command lnd logic for missions
The navigator was sending RTL commands in the wrong circumstances leading to a cycle between Navigator and Commander.
This commit is contained in:
@@ -300,11 +300,6 @@ RTL::set_rtl_item()
|
||||
|
||||
reset_mission_item_reached();
|
||||
|
||||
/* execute command if set */
|
||||
if (!item_contains_position(&_mission_item)) {
|
||||
issue_command(&_mission_item);
|
||||
}
|
||||
|
||||
/* convert mission item to current position setpoint and make it valid */
|
||||
mission_item_to_position_setpoint(&_mission_item, &pos_sp_triplet->current);
|
||||
pos_sp_triplet->next.valid = false;
|
||||
|
||||
Reference in New Issue
Block a user