From 3ef84d2b968d3a87e0acdf521da97f761385b132 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 22 May 2019 16:04:18 +1000 Subject: [PATCH] Copter: stop passing references to AC_Avoid constructor --- ArduCopter/Copter.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 1a044086ce..6c32189c60 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -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