mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 19:07:45 +08:00
flight task auto: set acceptance radius when setting loiter as a responce to invalid setpoint
This commit is contained in:
committed by
Mathieu Bresciani
parent
28dc225015
commit
26a8707298
@@ -142,6 +142,7 @@ bool FlightTaskAuto::_evaluateTriplets()
|
||||
_type = WaypointType::loiter;
|
||||
_yaw_setpoint = _yaw;
|
||||
_yawspeed_setpoint = NAN;
|
||||
_target_acceptance_radius = _sub_triplet_setpoint.get().current.acceptance_radius;
|
||||
_updateInternalWaypoints();
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user