mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
compass: add a small delay in compass init
this adds a 50ms delay after setting the compass gains before reading the compass. Added as paranoia after some strange results on a 5843 git-svn-id: https://arducopter.googlecode.com/svn/trunk@3070 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
parent
3a222a9fa2
commit
2995878e99
@ -138,6 +138,7 @@ AP_Compass_HMC5843::init()
|
||||
calibration[2] = 1.0;
|
||||
|
||||
// read values from the compass
|
||||
delay(50);
|
||||
read();
|
||||
if (last_update == update_stamp)
|
||||
continue; // we didn't read valid values
|
||||
|
Loading…
Reference in New Issue
Block a user