mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
AC_Avoidance: cope with polyfence holding boundary points
This commit is contained in:
parent
74aed5aef8
commit
3a7f1b882e
@ -399,7 +399,7 @@ void AC_Avoid::adjust_velocity_polygon_fence(float kP, float accel_cmss, Vector2
|
||||
|
||||
// get polygon boundary
|
||||
uint16_t num_points;
|
||||
const Vector2f* boundary = _fence.get_boundary_points(num_points);
|
||||
const Vector2f* boundary = _fence.polyfence().get_boundary_points(num_points);
|
||||
|
||||
// adjust velocity using polygon
|
||||
adjust_velocity_polygon(kP, accel_cmss, desired_vel_cms, boundary, num_points, true, _fence.get_margin(), dt);
|
||||
|
Loading…
Reference in New Issue
Block a user