mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: Initialise i-BUS telemetry when enabled
This commit is contained in:
parent
e2c7b489a1
commit
126d54bc93
|
@ -530,6 +530,10 @@ void AP_Vehicle::setup()
|
|||
GCS_SEND_TEXT(MAV_SEVERITY_ERROR, "%s Failed to Initialize", AP_DDS_Client::msg_prefix);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if AP_IBUS_TELEM_ENABLED
|
||||
ibus_telem.init();
|
||||
#endif
|
||||
}
|
||||
|
||||
void AP_Vehicle::loop()
|
||||
|
|
|
@ -80,6 +80,8 @@
|
|||
#include <AP_Gripper/AP_Gripper.h>
|
||||
#endif
|
||||
|
||||
#include <AP_IBus_Telem/AP_IBus_Telem.h>
|
||||
|
||||
class AP_DDS_Client;
|
||||
|
||||
class AP_Vehicle : public AP_HAL::HAL::Callbacks {
|
||||
|
@ -350,6 +352,10 @@ protected:
|
|||
AP_Gripper gripper;
|
||||
#endif
|
||||
|
||||
#if AP_IBUS_TELEM_ENABLED
|
||||
AP_IBus_Telem ibus_telem;
|
||||
#endif
|
||||
|
||||
#if AP_RSSI_ENABLED
|
||||
AP_RSSI rssi;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue