mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: correct compilation with AP_RRSI_ENABLED false
Co-authored-by: David Buzz <davidbuzz@gmail.com>
This commit is contained in:
parent
6dac230ccb
commit
c451518bdd
|
@ -255,9 +255,11 @@ void Plane::Log_Write_RC(void)
|
||||||
{
|
{
|
||||||
logger.Write_RCIN();
|
logger.Write_RCIN();
|
||||||
logger.Write_RCOUT();
|
logger.Write_RCOUT();
|
||||||
|
#if AP_RSSI_ENABLED
|
||||||
if (rssi.enabled()) {
|
if (rssi.enabled()) {
|
||||||
logger.Write_RSSI();
|
logger.Write_RSSI();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Log_Write_AETR();
|
Log_Write_AETR();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -975,9 +975,11 @@ const AP_Param::Info Plane::var_info[] = {
|
||||||
GOBJECT(rpm_sensor, "RPM", AP_RPM),
|
GOBJECT(rpm_sensor, "RPM", AP_RPM),
|
||||||
#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
|
||||||
|
|
|
@ -45,7 +45,9 @@ void Plane::init_ardupilot()
|
||||||
// initialise battery monitoring
|
// initialise battery monitoring
|
||||||
battery.init();
|
battery.init();
|
||||||
|
|
||||||
|
#if AP_RSSI_ENABLED
|
||||||
rssi.init();
|
rssi.init();
|
||||||
|
#endif
|
||||||
|
|
||||||
#if AP_RPM_ENABLED
|
#if AP_RPM_ENABLED
|
||||||
rpm_sensor.init();
|
rpm_sensor.init();
|
||||||
|
|
Loading…
Reference in New Issue