mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
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:
parent
ddb823829d
commit
db2e139812
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user