mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
Compass: change last_update to be in microseconds
This commit is contained in:
parent
a0a360f955
commit
6eff9107ea
@ -16,7 +16,7 @@
|
||||
bool AP_Compass_HIL::read()
|
||||
{
|
||||
// values set by setHIL function
|
||||
last_update = millis(); // record time of update
|
||||
last_update = micros(); // record time of update
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -279,7 +279,7 @@ bool AP_Compass_HMC5843::read()
|
||||
mag_y *= calibration[1];
|
||||
mag_z *= calibration[2];
|
||||
|
||||
last_update = millis(); // record time of update
|
||||
last_update = micros(); // record time of update
|
||||
// rotate and offset the magnetometer values
|
||||
// XXX this could well be done in common code...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user