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:
tridge60@gmail.com 2011-08-10 12:47:25 +00:00
parent 3a222a9fa2
commit 2995878e99

View File

@ -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