mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: correct compilation with AP_RRSI_ENABLED false
Co-authored-by: David Buzz <davidbuzz@gmail.com>
This commit is contained in:
parent
cc190f537f
commit
6dac230ccb
|
@ -583,9 +583,11 @@ void Copter::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();
|
||||||
|
|
|
@ -634,10 +634,12 @@ const AP_Param::Info Copter::var_info[] = {
|
||||||
GOBJECTN(mode_auto.mission, mission, "MIS_", AP_Mission),
|
GOBJECTN(mode_auto.mission, mission, "MIS_", AP_Mission),
|
||||||
#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
|
||||||
|
|
||||||
#if AP_RANGEFINDER_ENABLED
|
#if AP_RANGEFINDER_ENABLED
|
||||||
// @Group: RNGFND
|
// @Group: RNGFND
|
||||||
// @Path: ../libraries/AP_RangeFinder/AP_RangeFinder.cpp
|
// @Path: ../libraries/AP_RangeFinder/AP_RangeFinder.cpp
|
||||||
|
|
|
@ -27,9 +27,11 @@ void Copter::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();
|
||||||
|
|
||||||
// setup telem slots with serial ports
|
// setup telem slots with serial ports
|
||||||
|
|
Loading…
Reference in New Issue