Skip to content

Commit

Permalink
Blimp: correct compilation with AP_RRSI_ENABLED false
Browse files Browse the repository at this point in the history
Co-authored-by: David Buzz <[email protected]>
  • Loading branch information
peterbarker and davidbuzz committed Jul 23, 2024
1 parent c451518 commit 3e54ecf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Blimp/Blimp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,11 @@ void Blimp::ten_hz_logging_loop()
}
if (should_log(MASK_LOG_RCIN)) {
logger.Write_RCIN();
#if AP_RSSI_ENABLED
if (rssi.enabled()) {
logger.Write_RSSI();
}
#endif
}
if (should_log(MASK_LOG_RCOUT)) {
logger.Write_RCOUT();
Expand Down
2 changes: 2 additions & 0 deletions Blimp/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,9 +382,11 @@ const AP_Param::Info Blimp::var_info[] = {
GOBJECTN(ahrs.EKF3, NavEKF3, "EK3_", NavEKF3),
#endif

#if AP_RSSI_ENABLED
// @Group: RSSI_
// @Path: ../libraries/AP_RSSI/AP_RSSI.cpp
GOBJECT(rssi, "RSSI_", AP_RSSI),
#endif

// @Group: NTF_
// @Path: ../libraries/AP_Notify/AP_Notify.cpp
Expand Down
2 changes: 2 additions & 0 deletions Blimp/system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ void Blimp::init_ardupilot()
// initialise battery monitor
battery.init();

#if AP_RSSI_ENABLED
// Init RSSI
rssi.init();
#endif

barometer.init();

Expand Down

0 comments on commit 3e54ecf

Please sign in to comment.