flight task auto: set acceptance radius when setting loiter as a responce to invalid setpoint

This commit is contained in:
Dusan Zivkovic
2020-03-10 17:01:38 +01:00
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;
}