Skip to content

Commit

Permalink
Update KalmanForWaveAlt.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 12, 2024
1 parent 8547e76 commit e222b33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bbn_wave_freq_m5atomS3/KalmanForWaveAlt.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ void kalman_wave_alt_init_defaults() {

// observation covariance [KALMAN_NUM_MEASUREMENTS * KALMAN_NUM_MEASUREMENTS]
matrix_t *R = kalman_get_observation_noise(kfm);
matrix_set_symmetric(R, 0, 0, (matrix_data_t)1.0);
matrix_set_symmetric(R, 0, 0, (matrix_data_t)0.01);
matrix_set_symmetric(R, 0, 1, (matrix_data_t)0.0);
matrix_set_symmetric(R, 1, 1, (matrix_data_t)1.0);
matrix_set_symmetric(R, 1, 1, (matrix_data_t)0.01);

// initial state covariance [KALMAN_NUM_STATES * KALMAN_NUM_STATES]
matrix_t *P = kalman_get_system_covariance(kf);
Expand Down Expand Up @@ -203,7 +203,7 @@ void kalman_wave_alt_init_defaults() {
matrix_set_symmetric(Q, 2, 2, (matrix_data_t)0.04 * variance);
matrix_set_symmetric(Q, 2, 3, (matrix_data_t)0.0);
matrix_set_symmetric(Q, 2, 4, (matrix_data_t)0.0);
matrix_set_symmetric(Q, 3, 3, (matrix_data_t)variance);
matrix_set_symmetric(Q, 3, 3, (matrix_data_t)0.008 * variance);
matrix_set_symmetric(Q, 3, 4, (matrix_data_t)0.0);
matrix_set_symmetric(Q, 4, 4, (matrix_data_t)0.0002 * variance);
}
Expand Down

0 comments on commit e222b33

Please sign in to comment.