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