forked from Archive/PX4-Autopilot
Protect against divergence
This commit is contained in:
parent
03ccee289b
commit
7cdb7291af
|
@ -312,6 +312,8 @@ void UpdateStrapdownEquationsNED()
|
|||
states[8] = states[8] + 0.5f*(states[5] + lastVelocity[1])*dtIMU;
|
||||
states[9] = states[9] + 0.5f*(states[6] + lastVelocity[2])*dtIMU;
|
||||
|
||||
// Constrain states (to protect against filter divergence)
|
||||
ConstrainStates();
|
||||
}
|
||||
|
||||
void CovariancePrediction(float dt)
|
||||
|
|
Loading…
Reference in New Issue