AP_NavEKF2: use compass singleton for logging

This commit is contained in:
Peter Barker 2018-06-25 21:59:17 +10:00 committed by Francisco Ferreira
parent 8bc96a2e13
commit baa818a812

View File

@ -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) {