mirror of https://github.com/ArduPilot/ardupilot
AP_NMEA_Output: move logger object up to AP_Vehicle
This commit is contained in:
parent
477fa3e161
commit
fb7ccd327a
|
@ -8,7 +8,6 @@
|
|||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||
#include <GCS_MAVLink/GCS_Dummy.h>
|
||||
#include <AP_RangeFinder/AP_RangeFinder.h>
|
||||
#include <AP_Logger/AP_Logger.h>
|
||||
#include <AP_GPS/AP_GPS.h>
|
||||
#include <AP_Baro/AP_Baro.h>
|
||||
#include <AP_NMEA_Output/AP_NMEA_Output.h>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue