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 23, 2024
1 parent 49dbe55 commit 1279623
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 @@ -197,7 +197,7 @@ void read_and_processIMU_data() {
}
double freq_adj = kalman_smoother_update(&kalman_freq, arState.f);

if (freq_adj > 0.008 && freq_adj < 4.0) { /* prevent decimal overflows */
if (freq_adj > 0.004 && freq_adj < 4.0) { /* prevent decimal overflows */
double period = 1.0 / freq_adj;
uint32_t windowMicros = 3 * period * 1000000;
if (windowMicros <= 10 * 1000000) {
Expand Down Expand Up @@ -246,7 +246,7 @@ void read_and_processIMU_data() {
gen_nmea0183_xdr("$BBXDR,D,%.5f,M,DRT2", waveAltState.heave);
}
}
if (arState.f > 0.008 && arState.f < 4.0) {
if (arState.f > 0.02 && arState.f < 4.0) {
gen_nmea0183_xdr("$BBXDR,F,%.5f,H,FRT1", arState.f);
}
gen_nmea0183_xdr("$BBXDR,F,%.5f,H,SRT1", got_samples / ((now - last_refresh) / 1000000.0) );
Expand Down

0 comments on commit 1279623

Please sign in to comment.