mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_GyroFFT: move logger object up to AP_Vehicle
This commit is contained in:
parent
9ce9f88254
commit
7b3a91996b
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user