forked from Archive/PX4-Autopilot
FlightTaskAutoLine: replace NAV_ACC_RAD with _target_acceptance_radius
This commit is contained in:
parent
6110ddc8b1
commit
b3cde5ac44
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue