1
0
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:
peabody124 2010-11-26 15:57:13 +00:00 committed by peabody124
parent 6a33043297
commit b3251e2cfb

View File

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