Remove LNDMC_ALT_MAX

This should be replaced with the maximum geofence
altitude GF_MAX_VER_DIST. I'm not aware anyone is using
this functionality as is.
This commit is contained in:
Matthias Grob
2023-11-20 14:52:35 +01:00
parent fd4d635035
commit 9bed8f48c7
16 changed files with 0 additions and 97 deletions
@@ -122,7 +122,6 @@ void RtlDirectMissionLand::setActiveMissionItems()
(int32_t)ceilf(_rtl_alt));
_needs_climbing = false;
mission_apply_limitation(_mission_item);
mission_item_to_position_setpoint(_mission_item, &pos_sp_triplet->current);
new_work_item_type = WorkItemType::WORK_ITEM_TYPE_CLIMB;
@@ -180,11 +179,9 @@ void RtlDirectMissionLand::setActiveMissionItems()
}
if (num_found_items > 0) {
mission_apply_limitation(next_mission_items[0u]);
mission_item_to_position_setpoint(next_mission_items[0u], &pos_sp_triplet->next);
}
mission_apply_limitation(_mission_item);
mission_item_to_position_setpoint(_mission_item, &pos_sp_triplet->current);
}