mirror of https://github.com/ArduPilot/ardupilot
AP_AHRS: move logger object up to AP_Vehicle
This commit is contained in:
parent
6b32227d2f
commit
eb0c66fc90
|
@ -20,8 +20,6 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
|||
|
||||
|
||||
static AP_SerialManager serial_manager;
|
||||
AP_Int32 logger_bitmask;
|
||||
static AP_Logger logger{logger_bitmask};
|
||||
|
||||
class DummyVehicle : public AP_Vehicle {
|
||||
public:
|
||||
|
@ -36,7 +34,17 @@ public:
|
|||
ins.init(100);
|
||||
ahrs.init();
|
||||
}
|
||||
AP_Int32 unused_log_bitmask;
|
||||
struct LogStructure log_structure[1] = {
|
||||
};
|
||||
const AP_Int32 &get_log_bitmask() override { return unused_log_bitmask; }
|
||||
|
||||
const struct LogStructure *get_log_structures() const override {
|
||||
return log_structure;
|
||||
}
|
||||
uint8_t get_num_log_structures() const override {
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
static DummyVehicle vehicle;
|
||||
|
|
Loading…
Reference in New Issue