From 5092bc2f6d38b494f7bf6e284581b1f6135baae2 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Sun, 27 Dec 2020 22:02:34 +0530 Subject: [PATCH] AC_Avoid: Simplify accessing boundary --- libraries/AC_Avoidance/AC_Avoid.cpp | 5 ++++- libraries/AC_Avoidance/AC_Avoid.h | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AC_Avoidance/AC_Avoid.cpp b/libraries/AC_Avoidance/AC_Avoid.cpp index 23064bf728..c4deed19d8 100644 --- a/libraries/AC_Avoidance/AC_Avoid.cpp +++ b/libraries/AC_Avoidance/AC_Avoid.cpp @@ -1072,7 +1072,10 @@ void AC_Avoid::adjust_velocity_proximity(float kP, float accel_cmss, Vector3f &d for (uint8_t i = 0; i