mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -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;
|
return;
|
||||||
}
|
}
|
||||||
if (logging.log_compass) {
|
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;
|
logging.log_compass = false;
|
||||||
}
|
}
|
||||||
if (logging.log_gps) {
|
if (logging.log_gps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user