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:
parent
6f38e26a53
commit
3392622d2b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user