diff --git a/libraries/GCS_MAVLink/GCS_Dummy.h b/libraries/GCS_MAVLink/GCS_Dummy.h index 3af250b056..bf8333c6b1 100644 --- a/libraries/GCS_MAVLink/GCS_Dummy.h +++ b/libraries/GCS_MAVLink/GCS_Dummy.h @@ -11,6 +11,11 @@ class GCS_MAVLINK_Dummy : public GCS_MAVLINK bool try_send_message(enum ap_message id) { 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 {} + +protected: + + AP_Mission *get_mission() override { return nullptr; } + }; /* diff --git a/libraries/GCS_MAVLink/examples/routing/routing.cpp b/libraries/GCS_MAVLink/examples/routing/routing.cpp index 60b98fa1d9..7260039d96 100644 --- a/libraries/GCS_MAVLink/examples/routing/routing.cpp +++ b/libraries/GCS_MAVLink/examples/routing/routing.cpp @@ -21,6 +21,7 @@ public: protected: uint32_t telem_delay() const override { return 0; } + AP_Mission *get_mission() override { return nullptr; } private: