mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:48:52 +08:00
FlightTaskAutoLine: replace NAV_ACC_RAD with _target_acceptance_radius
This commit is contained in:
committed by
Daniel Agar
parent
6110ddc8b1
commit
b3cde5ac44
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user