mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 00:20:35 +08:00
Navigator: RTL_direct: onyl start precision land if param is set to enable
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
@@ -369,7 +369,9 @@ void RtlDirect::set_rtl_item()
|
||||
|
||||
_mission_item.land_precision = _param_rtl_pld_md.get();
|
||||
|
||||
startPrecLand(_mission_item.land_precision);
|
||||
if (_mission_item.land_precision > 0) {
|
||||
startPrecLand(_mission_item.land_precision);
|
||||
}
|
||||
|
||||
mavlink_log_info(_navigator->get_mavlink_log_pub(), "RTL: land at destination\t");
|
||||
events::send(events::ID("rtl_land_at_destination"), events::Log::Info, "RTL: land at destination");
|
||||
|
||||
Reference in New Issue
Block a user