fixed 5843 detection code

we were looking for the wrong regA value

Thanks to Chris for the debugging help! (and happy birthday!)

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2828 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-07-09 22:27:15 +00:00
parent ddb823829d
commit db2e139812

View File

@ -108,7 +108,7 @@ AP_Compass_HMC5843::init()
calibration_gain = 0x60;
expected_xy = 766;
expected_z = 713;
} else if (base_config == PositiveBiasConfig) {
} else if (base_config == NormalOperation | DataOutputRate_75HZ<<2) {
product_id = AP_COMPASS_TYPE_HMC5843;
} else {
// not behaving like either supported compass type