mirror of https://github.com/ArduPilot/ardupilot
Rover: correct compilation with AP_RRSI_ENABLED false
Co-authored-by: David Buzz <davidbuzz@gmail.com>
This commit is contained in:
parent
3e54ecfece
commit
3def5f7433
|
@ -142,7 +142,12 @@ void GCS_MAVLINK_Rover::send_servo_out()
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
receiver_rssi());
|
#if AP_RSSI_ENABLED
|
||||||
|
receiver_rssi()
|
||||||
|
#else
|
||||||
|
255
|
||||||
|
#endif
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const
|
int16_t GCS_MAVLINK_Rover::vfr_hud_throttle() const
|
||||||
|
|
|
@ -237,9 +237,11 @@ void Rover::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
|
||||||
}
|
}
|
||||||
|
|
||||||
void Rover::Log_Write_Vehicle_Startup_Messages()
|
void Rover::Log_Write_Vehicle_Startup_Messages()
|
||||||
|
|
|
@ -358,9 +358,11 @@ const AP_Param::Info Rover::var_info[] = {
|
||||||
// @Path: ../libraries/AP_Mission/AP_Mission.cpp
|
// @Path: ../libraries/AP_Mission/AP_Mission.cpp
|
||||||
GOBJECTN(mode_auto.mission, mission, "MIS_", AP_Mission),
|
GOBJECTN(mode_auto.mission, mission, "MIS_", AP_Mission),
|
||||||
|
|
||||||
|
#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
|
||||||
|
|
|
@ -18,7 +18,9 @@ void Rover::init_ardupilot()
|
||||||
rpm_sensor.init();
|
rpm_sensor.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if AP_RSSI_ENABLED
|
||||||
rssi.init();
|
rssi.init();
|
||||||
|
#endif
|
||||||
|
|
||||||
g2.windvane.init(serial_manager);
|
g2.windvane.init(serial_manager);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue