RTL fast reverse: enable precision landing

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2025-01-08 09:31:55 +01:00
parent 368bbfeb3b
commit d98a706380
3 changed files with 13 additions and 1 deletions
@@ -269,6 +269,13 @@ void RtlMissionFastReverse::handleLanding(WorkItemType &new_work_item_type)
_mission_item.altitude = _home_pos_sub.get().alt;
_mission_item.altitude_is_relative = false;
_navigator->reset_position_setpoint(pos_sp_triplet->previous);
_mission_item.land_precision = _param_rtl_pld_md.get();
if (_mission_item.land_precision > 0) {
startPrecLand(_mission_item.land_precision);
new_work_item_type = WorkItemType::WORK_ITEM_TYPE_PRECISION_LAND;
}
}
}
}