Browse Source

Compass: change last_update to be in microseconds

master
Andrew Tridgell 13 years ago
parent
commit
6eff9107ea
  1. 2
      libraries/AP_Compass/AP_Compass_HIL.cpp
  2. 2
      libraries/AP_Compass/AP_Compass_HMC5843.cpp

2
libraries/AP_Compass/AP_Compass_HIL.cpp

@ -16,7 +16,7 @@ @@ -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;
}

2
libraries/AP_Compass/AP_Compass_HMC5843.cpp

@ -279,7 +279,7 @@ bool AP_Compass_HMC5843::read() @@ -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…
Cancel
Save