1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

backporting change on next to modified Attitude module

This commit is contained in:
Corvus Corax 2013-06-22 23:07:53 +02:00
parent 6f38e26a53
commit 3392622d2b

View File

@ -415,12 +415,9 @@ static int32_t updateAttitudeComplementary(bool first_run)
// Zero gyro bias
// This is really needed after updating calibration settings.
GyrosBiasData zeroGyrosBias;
GyrosBiasGet(&zeroGyrosBias);
zeroGyrosBias.x = 0;
zeroGyrosBias.y = 0;
zeroGyrosBias.z = 0;
GyrosBiasSet(&zeroGyrosBias);
gyro_bias[0] = 0.0f;
gyro_bias[1] = 0.0f;
gyro_bias[2] = 0.0f;
return 0;
}