Skip to content

Commit

Permalink
Update ConstVelKF1.cpp
Browse files Browse the repository at this point in the history
Just changed the shift on the A matrix
  • Loading branch information
SunFireKing authored Dec 29, 2023
1 parent 8af65f2 commit 641e09b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff_estimate/src/ConstVelKF1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class ConstVelKF {
std::array<std::array<float, 6>, 6> A;
std::array<float, 2> dtmatrix = {dt, dt};
A = diagonal_matrix_offset<6,6>(diagonalone, 0);
A = diagonal_matrix_offset<6,6>(dtmatrix, 2);
A = diagonal_matrix_offset<6,6>(dtmatrix, 4);

this->x = matrix_multiply(A, this->x);
this->P = add_matrix(matrix_multiply(matrix_multiply(A, this->P), transpose(A)), matrix_const_mult(Q, dt));
Expand Down

0 comments on commit 641e09b

Please sign in to comment.