Skip to content

Commit

Permalink
Update bbn_wave_freq_m5atomS3.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrouch authored Sep 5, 2024
1 parent 213b644 commit 1af7b34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ void repeatMe() {
accel_rotated.y = rotated_a[1];
accel_rotated.z = rotated_a[2];

float y = (accel.z - 1.0) /* since it includes g */;
float y = (accel_rotated.z - 1.0) /* since it includes g */;
//float y = sin(2 * PI * state.t * 0.25); // dummy test data
aranovskiy_update(&params, &state, y, delta_t);
float freq = state.f;
Expand Down Expand Up @@ -296,9 +296,9 @@ void setup(void) {
aranovskiy_init_state(&state, t_0, x1_0, theta_0, sigma_0);

{
float process_noise_covariance = 0.5;
float measurement_uncertainty = 100.0;
float estimation_uncertainty = 500.0;
float process_noise_covariance = 0.6;
float measurement_uncertainty = 50.0;
float estimation_uncertainty = 200.0;
kalman_smoother_init(&kalman_freq, process_noise_covariance, measurement_uncertainty, estimation_uncertainty);
}

Expand Down

0 comments on commit 1af7b34

Please sign in to comment.