mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 18:23:34 +08:00
Add typedef for Matrix 24 types
This commit is contained in:
committed by
Mathieu Bresciani
parent
5356077a32
commit
552bf824ea
+3
-3
@@ -355,7 +355,7 @@ void Ekf::fuseMag()
|
||||
// apply covariance correction via P_new = (I -K*H)*P
|
||||
// first calculate expression for KHP
|
||||
// then calculate P - KHP
|
||||
matrix::SquareMatrix<float, _k_num_states> KHP {};
|
||||
SquareMatrix24f KHP;
|
||||
float KH[10];
|
||||
|
||||
for (unsigned row = 0; row < _k_num_states; row++) {
|
||||
@@ -705,7 +705,7 @@ void Ekf::updateQuaternion(const float innovation, const float variance, const f
|
||||
// apply covariance correction via P_new = (I -K*H)*P
|
||||
// first calculate expression for KHP
|
||||
// then calculate P - KHP
|
||||
matrix::SquareMatrix<float, _k_num_states> KHP;
|
||||
SquareMatrix24f KHP;
|
||||
float KH[4];
|
||||
|
||||
for (unsigned row = 0; row < _k_num_states; row++) {
|
||||
@@ -995,7 +995,7 @@ void Ekf::fuseDeclination(float decl_sigma)
|
||||
// first calculate expression for KHP
|
||||
// then calculate P - KHP
|
||||
// take advantage of the empty columns in KH to reduce the number of operations
|
||||
matrix::SquareMatrix<float, _k_num_states> KHP;
|
||||
SquareMatrix24f KHP;
|
||||
float KH[2];
|
||||
for (unsigned row = 0; row < _k_num_states; row++) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user