GCS_MAVLink: move devo telemetry handling to GCS

This commit is contained in:
Peter Barker 2019-02-14 10:11:52 +11:00 committed by Peter Barker
parent 3100c8edad
commit bc2080cea2
2 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,7 @@
#include <AP_Common/AP_FWVersion.h>
#include <AP_RTC/JitterCorrection.h>
#include <AP_Common/Bitmask.h>
#include <AP_Devo_Telem/AP_Devo_Telem.h>
#define GCS_DEBUG_SEND_MESSAGE_TIMINGS 0
@ -764,6 +765,9 @@ public:
// frsky backend
AP_Frsky_Telem frsky;
// Devo backend
AP_DEVO_Telem devo_telemetry;
// install an alternative protocol handler
bool install_alternative_protocol(mavlink_channel_t chan, GCS_MAVLINK::protocol_handler_fn_t handler);

View File

@ -2017,6 +2017,8 @@ void GCS::setup_uarts(AP_SerialManager &serial_manager)
}
frsky.init();
devo_telemetry.init();
}
// report battery2 state