rtl_direct: don't check RTL_PLD_MD param twice but use _mission_item.land_precision

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2024-11-11 14:28:15 +01:00
parent 0ecc8278b6
commit e29c86c81f
+1 -1
View File
@@ -110,7 +110,7 @@ void RtlDirect::on_active()
updateAltToAvoidTerrainCollisionAndRepublishTriplet(_mission_item);
}
if (_rtl_state == RTLState::LAND && _param_rtl_pld_md.get() > 0) {
if (_rtl_state == RTLState::LAND && _mission_item.land_precision > 0) {
// Need to update the position and type on the current setpoint triplet.
_navigator->get_precland()->on_active();