diff --git a/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp b/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp index b2d7f5e33f..b48716b12c 100644 --- a/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp +++ b/libraries/AP_NMEA_Output/examples/NMEA_Output/nmea_output.cpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include @@ -40,10 +39,6 @@ const struct AP_Param::Info var_info[] = { static AP_Param param{var_info}; - -AP_Int32 logger_bitmask; -static AP_Logger logger{logger_bitmask}; - class DummyVehicle : public AP_Vehicle { public: AP_AHRS ahrs{AP_AHRS::FLAG_ALWAYS_USE_EKF}; @@ -55,6 +50,14 @@ public: void init() { BoardConfig.init(); } + + // methods for AP_Vehicle: + AP_Int32 log_bitmask; + const AP_Int32 &get_log_bitmask() override { return log_bitmask; } + const struct LogStructure *get_log_structures() const override { + return nullptr; + } + uint8_t get_num_log_structures() const override { return 0; } }; static DummyVehicle vehicle;