From 2046271da4dfa7cfbcfaab3d38d8b97d94d954fe Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 8 Dec 2015 20:30:32 +1100 Subject: [PATCH] Copter: use new RangeFinder API --- ArduCopter/Copter.cpp | 2 +- ArduCopter/Copter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/Copter.cpp b/ArduCopter/Copter.cpp index cbeabdf260..e01e3d68a4 100644 --- a/ArduCopter/Copter.cpp +++ b/ArduCopter/Copter.cpp @@ -126,7 +126,7 @@ Copter::Copter(void) : #endif in_mavlink_delay(false), gcs_out_of_time(false), - param_loader(var_info) + param_loader(var_info) { memset(¤t_loc, 0, sizeof(current_loc)); diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 14c81b09ea..cdfbfb58bd 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -173,7 +173,7 @@ private: AP_InertialSensor ins; #if CONFIG_SONAR == ENABLED - RangeFinder sonar; + RangeFinder sonar{serial_manager}; bool sonar_enabled; // enable user switch for sonar #endif