FlightTaskAutoLine: replace NAV_ACC_RAD with _target_acceptance_radius

This commit is contained in:
Dennis Mannhart 2018-11-29 11:05:31 +01:00 committed by Daniel Agar
parent 6110ddc8b1
commit b3cde5ac44
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ void FlightTaskAutoLine::_setSpeedAtTarget()
_speed_at_target = 0.0f; _speed_at_target = 0.0f;
if (Vector2f(&(_target - _next_wp)(0)).length() > 0.001f && 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 = cos(x) + 1.0
angle = angle =
Vector2f(&(_target - _prev_wp)(0)).unit_or_zero() Vector2f(&(_target - _prev_wp)(0)).unit_or_zero()