mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
GCS_MAVLink: correct examples with override keyword
This commit is contained in:
parent
3175a2ce19
commit
e6653f42dd
@ -19,7 +19,7 @@ class GCS_MAVLINK_Dummy : public GCS_MAVLINK
|
||||
{
|
||||
uint32_t telem_delay() const override { return 0; }
|
||||
void handleMessage(mavlink_message_t * msg) override {}
|
||||
bool try_send_message(enum ap_message id) { return true; }
|
||||
bool try_send_message(enum ap_message id) override { return true; }
|
||||
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override { return true; }
|
||||
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override {}
|
||||
|
||||
@ -52,7 +52,7 @@ class GCS_Dummy : public GCS
|
||||
GCS_MAVLINK_Dummy &chan(const uint8_t ofs) override { return dummy_backend; }
|
||||
const GCS_MAVLINK_Dummy &chan(const uint8_t ofs) const override { return dummy_backend; };
|
||||
|
||||
void send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const char *text) { hal.console->printf("TOGCS: %s\n", text); }
|
||||
void send_statustext(MAV_SEVERITY severity, uint8_t dest_bitmask, const char *text) override { hal.console->printf("TOGCS: %s\n", text); }
|
||||
|
||||
MAV_TYPE frame_type() const override { return MAV_TYPE_FIXED_WING; }
|
||||
uint32_t custom_mode() const override { return 3; } // magic number
|
||||
|
@ -45,7 +45,7 @@ protected:
|
||||
|
||||
private:
|
||||
|
||||
void handleMessage(mavlink_message_t * msg) { }
|
||||
void handleMessage(mavlink_message_t * msg) override { }
|
||||
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; }
|
||||
@ -54,7 +54,7 @@ private:
|
||||
|
||||
|
||||
static const uint8_t num_gcs = MAVLINK_COMM_NUM_BUFFERS;
|
||||
static GCS_MAVLINK_routing gcs_link[MAVLINK_COMM_NUM_BUFFERS];
|
||||
static GCS_MAVLINK_routing gcs_link[num_gcs];
|
||||
|
||||
extern mavlink_system_t mavlink_system;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user