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 22, 2024
1 parent 2081728 commit f7bdf85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ void read_and_processIMU_data() {

if (first) {
float k_hat = - pow(2.0 * PI * 0.3 /* freq guess */, 2);
waveState.displacement_integral = 0.0;
waveState.displacement_integral = 0.0f;
waveState.heave = a * g_std / k_hat;
waveState.vert_speed = 0.0; // ??
waveState.vert_speed = 0.0f; // ??
waveState.accel_bias = 0.0f;
kalman_wave_init_state(&waveState);
}
Expand Down

0 comments on commit f7bdf85

Please sign in to comment.