mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
AP_NavEKF2: use compass singleton for logging
This commit is contained in:
parent
8bc96a2e13
commit
baa818a812
@ -571,7 +571,7 @@ void NavEKF2::check_log_write(void)
|
||||
return;
|
||||
}
|
||||
if (logging.log_compass) {
|
||||
DataFlash_Class::instance()->Log_Write_Compass(*_ahrs->get_compass(), imuSampleTime_us);
|
||||
DataFlash_Class::instance()->Log_Write_Compass(imuSampleTime_us);
|
||||
logging.log_compass = false;
|
||||
}
|
||||
if (logging.log_gps) {
|
||||
|
Loading…
Reference in New Issue
Block a user