mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-08 22:53:57 -04:00
AC_Avoid: adjust for renamed get_polygon_points
This commit is contained in:
parent
2822c635ec
commit
4be3a48275
@ -364,7 +364,7 @@ void AC_Avoid::adjust_velocity_polygon_fence(float kP, float accel_cmss, Vector2
|
|||||||
// get polygon boundary
|
// get polygon boundary
|
||||||
// Note: first point in list is the return-point (which copter does not use)
|
// Note: first point in list is the return-point (which copter does not use)
|
||||||
uint16_t num_points;
|
uint16_t num_points;
|
||||||
const Vector2f* boundary = _fence.get_polygon_points(num_points);
|
const Vector2f* boundary = _fence.get_boundary_points(num_points);
|
||||||
|
|
||||||
// adjust velocity using polygon
|
// adjust velocity using polygon
|
||||||
adjust_velocity_polygon(kP, accel_cmss, desired_vel_cms, boundary, num_points, true, _fence.get_margin(), dt);
|
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