AP_AHRS: move logger object up to AP_Vehicle

This commit is contained in:
Peter Barker 2024-02-11 08:48:46 +11:00 committed by Andrew Tridgell
parent 6b32227d2f
commit eb0c66fc90
1 changed files with 10 additions and 2 deletions

View File

@ -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;