mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-06 06:50:34 +08:00
EKF: Fix bug in declination fusion indexing
This commit is contained in:
+1
-1
@@ -852,7 +852,7 @@ void Ekf::fuseDeclination()
|
||||
float KH[_k_num_states][_k_num_states] = {};
|
||||
|
||||
for (unsigned row = 0; row < _k_num_states; row++) {
|
||||
for (unsigned column = 16; column < 17; column++) {
|
||||
for (unsigned column = 16; column <= 17; column++) {
|
||||
KH[row][column] = Kfusion[row] * H_DECL[column];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user