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 8, 2024
1 parent 2cb02f1 commit 544ae84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,8 @@ void setup(void) {

/*
Accelerometer bias creates heave bias and Aranovskiy filter gives
lower frequency (i. e. higher period)
lower frequency (i. e. higher period).
Even 2cm bias in heave is too much to affect frequency a lot
*/
float omega_init = 0.04 * (2 * PI); // init frequency Hz * 2 * PI (start converging from omega_init/2)
float k_gain = 200.0; // Aranovskiy gain. Higher value will give faster convergence, but too high will overflow float
Expand Down

0 comments on commit 544ae84

Please sign in to comment.