From ebebb3b10716741a67e9928df987b2e47ccc7271 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 31 Mar 2018 23:28:15 +1100 Subject: [PATCH] Copter: use ahrs singleton for AP_Follow and SmartRTL --- ArduCopter/Parameters.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/Parameters.cpp b/ArduCopter/Parameters.cpp index 11aee0fe16..ab28a5ef50 100644 --- a/ArduCopter/Parameters.cpp +++ b/ArduCopter/Parameters.cpp @@ -1003,13 +1003,13 @@ ParametersG2::ParametersG2(void) ,afs(copter.mission, copter.barometer, copter.gps, copter.rcmap) #endif #if MODE_SMARTRTL_ENABLED == ENABLED - ,smart_rtl(copter.ahrs) + ,smart_rtl() #endif #if !HAL_MINIMIZE_FEATURES && OPTFLOW == ENABLED ,mode_flowhold_ptr(&copter.mode_flowhold) #endif #if MODE_FOLLOW_ENABLED == ENABLED - ,follow(copter.ahrs) + ,follow() #endif { AP_Param::setup_object_defaults(this, var_info);