1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Disable baro updates into INSGPS for now. Seems to cause issues.

This commit is contained in:
James Cotton 2012-04-07 00:38:33 -05:00
parent aa6c8a451d
commit fcb9193d25

View File

@ -673,13 +673,18 @@ static int32_t updateAttitudeINSGPS(bool first_run, bool outdoor_mode)
nedPos.Down = NED[2];
NEDPositionSet(&nedPos);
// Mask out baro sensor for outdoor mode. Causing issues right now.
sensors &= ~BARO_SENSOR;
} else if (!outdoor_mode) {
INSSetPosVelVar(1e2f, 1e2f);
vel[0] = vel[1] = vel[2] = 0;
NED[0] = NED[1] = 0;
NED[2] = baroData.Altitude;
sensors |= HORIZ_SENSORS | HORIZ_POS_SENSORS;
sensors |= POS_SENSORS |VERT_SENSORS;
// Mask out baro sensor for indoor mode. Causing issues right now.
sensors &= ~BARO_SENSOR;
NED[2] = -baroData.Altitude;
sensors |= VER_POS_SENSORS;
}
/*