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:
parent
0c054a1e62
commit
9c512261e6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user