Browse Source

GCS_MAVLink: update routing example for mavlink namespacing

master
Peter Barker 9 years ago committed by Andrew Tridgell
parent
commit
03ded35d7c
  1. 22
      libraries/GCS_MAVLink/examples/routing/routing.cpp

22
libraries/GCS_MAVLink/examples/routing/routing.cpp

@ -10,8 +10,28 @@ @@ -10,8 +10,28 @@
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
class GCS_MAVLINK_routing : public GCS_MAVLINK
{
public:
void data_stream_send(void) override { };
protected:
private:
float adjust_rate_for_stream_trigger(enum streams stream_num) override { return 0.0f; }
void handleMessage(mavlink_message_t * msg) { }
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override { return false ; }
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override { }
bool try_send_message(enum ap_message id) override { return false; }
};
static const uint8_t num_gcs = MAVLINK_COMM_NUM_BUFFERS;
static GCS_MAVLINK gcs[MAVLINK_COMM_NUM_BUFFERS];
static GCS_MAVLINK_routing gcs[MAVLINK_COMM_NUM_BUFFERS];
extern mavlink_system_t mavlink_system;

Loading…
Cancel
Save