forked from Archive/PX4-Autopilot
Merge remote-tracking branch 'upstream/mtecs_estimator' into navigator_rewrite_estimator
This commit is contained in:
commit
a89ed8eed9
|
@ -61,8 +61,7 @@ void AttPosEKF::UpdateStrapdownEquationsNED()
|
|||
|
||||
// Apply corrections for earths rotation rate and coning errors
|
||||
// * and + operators have been overloaded
|
||||
correctedDelAng = dAngIMU;//correctedDelAng - Tnb*earthRateNED*dtIMU + 8.333333333333333e-2f*(prevDelAng % correctedDelAng);
|
||||
correctedDelAng.z = 0;
|
||||
correctedDelAng = correctedDelAng - Tnb*earthRateNED*dtIMU + 8.333333333333333e-2f*(prevDelAng % correctedDelAng);
|
||||
// Convert the rotation vector to its equivalent quaternion
|
||||
rotationMag = correctedDelAng.length();
|
||||
if (rotationMag < 1e-12f)
|
||||
|
|
|
@ -2266,7 +2266,7 @@ int AttPosEKF::CheckAndBound()
|
|||
|
||||
// Reset the filter if gyro offsets are excessive
|
||||
if (fabs(states[10]) > 1.0f || fabsf(states[11]) > 1.0f || fabsf(states[12]) > 1.0f) {
|
||||
|
||||
FillErrorReport(&last_ekf_error);
|
||||
InitializeDynamic(velNED, magDeclination);
|
||||
|
||||
// that's all we can do here, return
|
||||
|
|
Loading…
Reference in New Issue