global: use static method to construct AP_RSSI

This commit is contained in:
Lucas De Marchi 2017-08-29 16:48:30 -07:00 committed by Francisco Ferreira
parent b09e0c3261
commit eadd650d78
3 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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

View File

@ -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