mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
Copter: use compass singleton for logging
This commit is contained in:
parent
c0fac91110
commit
8bc96a2e13
@ -308,7 +308,7 @@ void Copter::update_batt_compass(void)
|
||||
compass.read();
|
||||
// log compass information
|
||||
if (should_log(MASK_LOG_COMPASS) && !ahrs.have_ekf_logging()) {
|
||||
DataFlash.Log_Write_Compass(compass);
|
||||
DataFlash.Log_Write_Compass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user