Skip to content

Commit

Permalink
Update Kalman.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 11, 2024
1 parent 630213f commit f55333b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bbn_wave_freq_m5atomS3/Kalman.h
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ void kalman_predict_x(register kalman_t *const kf) {
matrix_copy(xpredicted, x);

// x += B*u
if (kf->B.rows > 0) {
if (kf->B.rows > 0 && kf->B.cols > 0) {
matrix_mult_rowvector(B, u, xpredicted);
matrix_add_inplace(x, xpredicted);
}
Expand Down

0 comments on commit f55333b

Please sign in to comment.