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 f55333b commit dac631c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bbn_wave_freq_m5atomS3/Kalman.h
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ void kalman_predict_P_tuned(register kalman_t *const kf,
inline void kalman_predict(kalman_t *kf) {
/************************************************************************/
/* Predict next state using system dynamics */
/* x = F*x */
/* x = F*x + B*u + w */
/************************************************************************/

kalman_predict_x(kf);

/************************************************************************/
/* Predict next covariance using system dynamics and input */
/* P = A*P*A' + Q */
/* P = F*P*F' + Q */
/************************************************************************/

kalman_predict_P(kf);
Expand All @@ -326,14 +326,14 @@ inline void kalman_predict(kalman_t *kf) {
void kalman_predict_tuned(kalman_t *kf, matrix_data_t lambda) {
/************************************************************************/
/* Predict next state using system dynamics */
/* x = F*x */
/* x = F*x + B*u + w */
/************************************************************************/

kalman_predict_x(kf);

/************************************************************************/
/* Predict next covariance using system dynamics and input */
/* P = A*P*A' * 1/lambda^2 + B*Q*B' */
/* P = F*P*F' * 1/lambda^2 + B*Q*B' */
/************************************************************************/

kalman_predict_P_tuned(kf, lambda);
Expand Down Expand Up @@ -567,7 +567,7 @@ void kalman_predict_x(register kalman_t *const kf) {

/************************************************************************/
/* Predict next state using system dynamics */
/* x = A*x + B*u */
/* x = F*x + B*u + w */
/************************************************************************/

// x = A*x
Expand Down

0 comments on commit dac631c

Please sign in to comment.