|
@@ -223,13 +223,13 @@ void State_covariance_matrix_update(float *P, float *acc_n, float dt)
|
|
|
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
{
|
|
|
- P[i * 9 + i] += 0.000001f;
|
|
|
+ P[i * 9 + i] += noise;
|
|
|
}
|
|
|
|
|
|
for (int i = 6; i < 9; i++)
|
|
|
{
|
|
|
- P[i * 9 + i] += 0.0001f ;
|
|
|
- //P[i * 9 + i] += noise*100.f ;
|
|
|
+ //P[i * 9 + i] += 0.0001f ;
|
|
|
+ P[i * 9 + i] += noise*100.f ;
|
|
|
}
|
|
|
|
|
|
}
|