mirror of https://github.com/ArduPilot/ardupilot
Tracker: use compass singleton for logging
This commit is contained in:
parent
4502fd21c3
commit
c0fac91110
|
@ -17,7 +17,7 @@ void Tracker::update_compass(void)
|
|||
if (g.compass_enabled && compass.read()) {
|
||||
ahrs.set_compass(&compass);
|
||||
if (should_log(MASK_LOG_COMPASS)) {
|
||||
DataFlash.Log_Write_Compass(compass);
|
||||
DataFlash.Log_Write_Compass();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue