mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Quaternion: use gyro drift value from sensor driver
This commit is contained in:
parent
3989fe2c2c
commit
eff6778515
@ -25,6 +25,10 @@ public:
|
|||||||
b_x = 0;
|
b_x = 0;
|
||||||
b_z = -1;
|
b_z = -1;
|
||||||
|
|
||||||
|
// limit the drift to the drift rate reported by the
|
||||||
|
// sensor driver
|
||||||
|
gyroMeasDrift = imu->get_gyro_drift_rate();
|
||||||
|
|
||||||
// scaled gyro drift limits
|
// scaled gyro drift limits
|
||||||
beta = sqrt(3.0f / 4.0f) * gyroMeasError;
|
beta = sqrt(3.0f / 4.0f) * gyroMeasError;
|
||||||
zeta = sqrt(3.0f / 4.0f) * gyroMeasDrift;
|
zeta = sqrt(3.0f / 4.0f) * gyroMeasDrift;
|
||||||
|
Loading…
Reference in New Issue
Block a user