mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user