mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-06 21:54:15 +01:00
AHRS: Accidentally was using mags when in indoor_nomag mode
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2159 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
6a33043297
commit
b3251e2cfb
@ -246,7 +246,7 @@ void ins_indoor_update()
|
|||||||
else
|
else
|
||||||
sensors = HORIZ_SENSORS | VERT_SENSORS;
|
sensors = HORIZ_SENSORS | VERT_SENSORS;
|
||||||
|
|
||||||
if(mag_data.updated) {
|
if(mag_data.updated && (ahrs_algorithm == AHRSSETTINGS_ALGORITHM_INSGPS_INDOOR)) {
|
||||||
sensors |= MAG_SENSORS;
|
sensors |= MAG_SENSORS;
|
||||||
mag_data.updated = false;
|
mag_data.updated = false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user