Increase matrix library usage even more

This commit is contained in:
kamilritz
2020-06-26 08:26:26 +02:00
committed by Mathieu Bresciani
parent 630be60930
commit 4a69b41015
7 changed files with 10 additions and 41 deletions
+1 -5
View File
@@ -263,11 +263,7 @@ void Ekf::fuseSideslip()
// only apply covariance and state corrections if healthy
if (healthy) {
// apply the covariance corrections
for (unsigned row = 0; row < _k_num_states; row++) {
for (unsigned column = 0; column < _k_num_states; column++) {
P(row,column) = P(row,column) - KHP(row,column);
}
}
P -= KHP;
// correct the covariance matrix for gross errors
fixCovarianceErrors(true);