Skip to content
Snippets Groups Projects
Commit b3cde5ac authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Daniel Agar
Browse files

FlightTaskAutoLine: replace NAV_ACC_RAD with _target_acceptance_radius

parent 6110ddc8
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ void FlightTaskAutoLine::_setSpeedAtTarget()
_speed_at_target = 0.0f;
if (Vector2f(&(_target - _next_wp)(0)).length() > 0.001f &&
(Vector2f(&(_target - _prev_wp)(0)).length() > NAV_ACC_RAD.get())) {
(Vector2f(&(_target - _prev_wp)(0)).length() > _target_acceptance_radius)) {
// angle = cos(x) + 1.0
angle =
Vector2f(&(_target - _prev_wp)(0)).unit_or_zero()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment