mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-16 08:29:15 +01:00
Merge branch 'corvuscorax/OP-946_refaktor_sensor_and_state' into corvuscorax/OP-947_stateestimator-module
This commit is contained in:
commit
3dda543608
@ -476,8 +476,8 @@ static int32_t updateAttitudeComplementary(bool first_run)
|
|||||||
|
|
||||||
// Accumulate integral of error. Scale here so that units are (deg/s) but Ki has units of s
|
// Accumulate integral of error. Scale here so that units are (deg/s) but Ki has units of s
|
||||||
gyro_bias[0] -= accel_err[0] * attitudeSettings.AccelKi;
|
gyro_bias[0] -= accel_err[0] * attitudeSettings.AccelKi;
|
||||||
gyro_bias[0] -= accel_err[1] * attitudeSettings.AccelKi;
|
gyro_bias[1] -= accel_err[1] * attitudeSettings.AccelKi;
|
||||||
gyro_bias[0] -= mag_err[2] * magKi;
|
gyro_bias[2] -= mag_err[2] * magKi;
|
||||||
|
|
||||||
// Correct rates based on integral coefficient
|
// Correct rates based on integral coefficient
|
||||||
gyroStateData.x -= gyro_bias[0];
|
gyroStateData.x -= gyro_bias[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user