AP_GyroFFT: move logger object up to AP_Vehicle

This commit is contained in:
Peter Barker 2024-02-11 11:39:02 +11:00 committed by Andrew Tridgell
parent 9ce9f88254
commit 7b3a91996b

View File

@ -29,7 +29,7 @@ static AP_BoardConfig board_config;
static AP_InertialSensor ins;
static AP_Baro baro;
AP_Int32 logger_bitmask;
static AP_Logger logger{logger_bitmask};
static AP_Logger logger;
#if HAL_EXTERNAL_AHRS_ENABLED
static AP_ExternalAHRS external_ahrs;
#endif
@ -123,7 +123,7 @@ void setup()
sitl.gyro_file_rw.set(SITL::SIM::INSFileMode::INS_FILE_READ_STOP_ON_EOF); // SIM_GYR_FILE_RW
}
logger_bitmask.set(128); // IMU
logger.Init(log_structure, ARRAY_SIZE(log_structure));
logger.init(logger_bitmask, log_structure, ARRAY_SIZE(log_structure));
ins.init(LOOP_RATE_HZ);
baro.init();