Browse Source

Copter: stop passing references to AC_Avoid constructor

master
Peter Barker 6 years ago committed by Tom Pittenger
parent
commit
3ef84d2b96
  1. 6
      ArduCopter/Copter.h

6
ArduCopter/Copter.h

@ -472,11 +472,7 @@ private: @@ -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

Loading…
Cancel
Save