From 2403f386b5a17ed882dafd130a26a3847073cd5a Mon Sep 17 00:00:00 2001 From: Mikhail Grushinskiy Date: Sun, 8 Sep 2024 00:01:39 -0400 Subject: [PATCH] Update bbn_wave_freq_m5atomS3.ino --- bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino b/bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino index 36df35e..37a412f 100644 --- a/bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino +++ b/bbn_wave_freq_m5atomS3/bbn_wave_freq_m5atomS3.ino @@ -297,7 +297,7 @@ void setup(void) { float twoKi = (2.0f * 0.0001f); mahony_AHRS_init(&mahony, twoKp, twoKi); - float omega_init = 0.03 * (2 * PI); // init frequency Hz * 2 * PI (start converging from omega_init/2) + 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 float t_0 = 0.0; float x1_0 = 0.0;