GCS_MAVLink: added routing object to GCS_MAVLink

This commit is contained in:
Andrew Tridgell 2014-12-10 14:02:08 +11:00 committed by Randy Mackay
parent b91529622b
commit 11f88f0f5d
2 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@
#include <AP_Mission.h>
#include "../AP_BattMonitor/AP_BattMonitor.h"
#include <stdint.h>
#include <MAVLink_routing.h>
// GCS Message ID's
/// NOTE: to ensure we never block on sending MAVLink messages
@ -189,6 +190,9 @@ public:
// last time we got a non-zero RSSI from RADIO_STATUS
static uint32_t last_radio_status_remrssi_ms;
// mavlink routing object
static MAVLink_routing routing;
// common send functions
void send_meminfo(void);
void send_power_status(void);

View File

@ -43,6 +43,9 @@ mavlink_system_t mavlink_system = {7,1};
// mask of serial ports disabled to allow for SERIAL_CONTROL
static uint8_t mavlink_locked_mask;
// routing table
MAVLink_routing GCS_MAVLINK::routing;
/*
lock a channel, preventing use by MAVLink
*/