From eadd650d78414d443be1485a9b0d89ff9f89b144 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 29 Aug 2017 16:48:30 -0700 Subject: [PATCH] global: use static method to construct AP_RSSI --- APMrover2/Rover.h | 2 +- ArduCopter/Copter.h | 4 ++-- ArduPlane/Plane.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/APMrover2/Rover.h b/APMrover2/Rover.h index ba4b85cd57..640355f5ad 100644 --- a/APMrover2/Rover.h +++ b/APMrover2/Rover.h @@ -189,7 +189,7 @@ private: #endif // RSSI - AP_RSSI rssi; + AP_RSSI rssi = AP_RSSI::create(); #if CONFIG_HAL_BOARD == HAL_BOARD_SITL SITL::SITL sitl; diff --git a/ArduCopter/Copter.h b/ArduCopter/Copter.h index 9d4cc4d8c1..a0c9315f3f 100644 --- a/ArduCopter/Copter.h +++ b/ArduCopter/Copter.h @@ -566,8 +566,8 @@ private: AP_Rally_Copter rally = AP_Rally_Copter::create(ahrs); #endif - // RSSI - AP_RSSI rssi; + // RSSI + AP_RSSI rssi = AP_RSSI::create(); // Crop Sprayer #if SPRAYER == ENABLED diff --git a/ArduPlane/Plane.h b/ArduPlane/Plane.h index 8d6ee10099..08d633c543 100644 --- a/ArduPlane/Plane.h +++ b/ArduPlane/Plane.h @@ -285,8 +285,8 @@ private: // Rally Ponints AP_Rally rally = AP_Rally::create(ahrs); - // RSSI - AP_RSSI rssi; + // RSSI + AP_RSSI rssi = AP_RSSI::create(); // This is the state of the flight control system // There are multiple states defined such as MANUAL, FBW-A, AUTO