AC_Avoidance: rename adjust_velocity_circle_fence method

This commit is contained in:
Randy Mackay 2016-11-08 13:53:20 +09:00
parent 40c4e75ae7
commit 79280036de
2 changed files with 3 additions and 3 deletions

View File

@ -34,8 +34,8 @@ void AC_Avoid::adjust_velocity(float kP, float accel_cmss, Vector2f &desired_vel
float accel_cmss_limited = MIN(accel_cmss, AC_AVOID_ACCEL_CMSS_MAX);
if ((_enabled & AC_AVOID_STOP_AT_FENCE) > 0) {
adjust_velocity_circle(kP, accel_cmss_limited, desired_vel);
adjust_velocity_poly(kP, accel_cmss_limited, desired_vel);
adjust_velocity_circle_fence(kP, accel_cmss_limited, desired_vel);
}
if ((_enabled & AC_AVOID_USE_PROXIMITY_SENSOR) > 0) {
@ -55,7 +55,7 @@ void AC_Avoid::adjust_velocity(float kP, float accel_cmss, Vector3f &desired_vel
/*
* Adjusts the desired velocity for the circular fence.
*/
void AC_Avoid::adjust_velocity_circle(const float kP, const float accel_cmss, Vector2f &desired_vel)
void AC_Avoid::adjust_velocity_circle_fence(float kP, float accel_cmss, Vector2f &desired_vel)
{
// exit if circular fence is not enabled
if ((_fence.get_enabled_fences() & AC_FENCE_TYPE_CIRCLE) == 0) {

View File

@ -42,7 +42,7 @@ private:
/*
* Adjusts the desired velocity for the circular fence.
*/
void adjust_velocity_circle(const float kP, const float accel_cmss, Vector2f &desired_vel);
void adjust_velocity_circle_fence(float kP, float accel_cmss, Vector2f &desired_vel);
/*
* Adjusts the desired velocity for the polygon fence.