From 7b3a91996bc4bdb314d9cc2c015cde62f61842c8 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 11 Feb 2024 11:39:02 +1100 Subject: [PATCH] AP_GyroFFT: move logger object up to AP_Vehicle --- libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp b/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp index 70b74f4228..c607c88c53 100644 --- a/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp +++ b/libraries/AP_GyroFFT/examples/ReplayGyroFFT/ReplayGyroFFT.cpp @@ -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();