AP_Vehicle: Initialise i-BUS telemetry when enabled

This commit is contained in:
Nicole Ashley 2024-07-30 16:20:51 +12:00 committed by Peter Barker
parent e2c7b489a1
commit 126d54bc93
2 changed files with 10 additions and 0 deletions

View File

@ -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()

View File

@ -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