Blimp: correct compilation with AP_RRSI_ENABLED false

Co-authored-by: David Buzz <davidbuzz@gmail.com>
This commit is contained in:
Peter Barker 2024-07-23 20:51:07 +10:00 committed by Peter Barker
parent c451518bdd
commit 3e54ecfece
3 changed files with 6 additions and 0 deletions

View File

@ -165,9 +165,11 @@ void Blimp::ten_hz_logging_loop()
} }
if (should_log(MASK_LOG_RCIN)) { if (should_log(MASK_LOG_RCIN)) {
logger.Write_RCIN(); logger.Write_RCIN();
#if AP_RSSI_ENABLED
if (rssi.enabled()) { if (rssi.enabled()) {
logger.Write_RSSI(); logger.Write_RSSI();
} }
#endif
} }
if (should_log(MASK_LOG_RCOUT)) { if (should_log(MASK_LOG_RCOUT)) {
logger.Write_RCOUT(); logger.Write_RCOUT();

View File

@ -382,9 +382,11 @@ const AP_Param::Info Blimp::var_info[] = {
GOBJECTN(ahrs.EKF3, NavEKF3, "EK3_", NavEKF3), GOBJECTN(ahrs.EKF3, NavEKF3, "EK3_", NavEKF3),
#endif #endif
#if AP_RSSI_ENABLED
// @Group: RSSI_ // @Group: RSSI_
// @Path: ../libraries/AP_RSSI/AP_RSSI.cpp // @Path: ../libraries/AP_RSSI/AP_RSSI.cpp
GOBJECT(rssi, "RSSI_", AP_RSSI), GOBJECT(rssi, "RSSI_", AP_RSSI),
#endif
// @Group: NTF_ // @Group: NTF_
// @Path: ../libraries/AP_Notify/AP_Notify.cpp // @Path: ../libraries/AP_Notify/AP_Notify.cpp

View File

@ -21,8 +21,10 @@ void Blimp::init_ardupilot()
// initialise battery monitor // initialise battery monitor
battery.init(); battery.init();
#if AP_RSSI_ENABLED
// Init RSSI // Init RSSI
rssi.init(); rssi.init();
#endif
barometer.init(); barometer.init();