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:
Lorenz Meier
2017-05-16 08:40:53 +02:00
parent 32685338c9
commit 9be5193965
3 changed files with 1 additions and 17 deletions
-5
View File
@@ -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;