Copter: stop passing references to AC_Avoid constructor

This commit is contained in:
Peter Barker 2019-05-22 16:04:18 +10:00 committed by Tom Pittenger
parent 9f97125656
commit 3ef84d2b96

View File

@ -472,11 +472,7 @@ private:
#endif
#if AC_AVOID_ENABLED == ENABLED
# if BEACON_ENABLED == ENABLED
AC_Avoid avoid{ahrs, fence, g2.proximity, &g2.beacon};
# else
AC_Avoid avoid{ahrs, fence, g2.proximity};
# endif
AC_Avoid avoid;
#endif
// Rally library