1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

When in indoor mode reset the baro offset to zero

This commit is contained in:
James Cotton 2012-07-22 01:02:14 -05:00
parent 0c054a1e62
commit 9c512261e6

View File

@ -776,6 +776,7 @@ static int32_t updateAttitudeINSGPS(bool first_run, bool outdoor_mode)
NEDPositionSet(&nedPos);
} else if (!outdoor_mode) {
baroOffset = 0;
INSSetPosVelVar(1e2f, 1e2f);
vel[0] = vel[1] = vel[2] = 0;
NED[0] = NED[1] = 0;