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 11, 2024
1 parent 5342899 commit b24e938
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ void repeatMe() {
float speed = waveState.vert_speed;

float y = heave;
aranovskiy_update(&params, &state, y, delta_t);
if (t > 5.0 /* sec */) {
// give some time for other filters to settle first
aranovskiy_update(&params, &state, y, delta_t);
}
double freq = state.f;

if (first) {
Expand Down

0 comments on commit b24e938

Please sign in to comment.