]> git.droids-corp.org - fpv.git/commitdiff
imu: set sample freq to 50hz
authorOlivier Matz <zer0@droids-corp.org>
Tue, 25 Nov 2014 22:21:15 +0000 (23:21 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Tue, 25 Nov 2014 22:21:15 +0000 (23:21 +0100)
imuboard/MadgwickAHRS.c

index c6dfaee4939e1d4b6cfdf3eec0abeed208c05b51..b9a7b91903016dcb0254467d83b38869c5a6feeb 100644 (file)
@@ -34,9 +34,8 @@
 #include "MadgwickAHRS.h"
 #include <math.h>
 
-//#define sampleFreq   512.0f          // sample frequency in Hz
-//#define sampleFreq   46.0f           // sample frequency in Hz
-#define sampleFreq     85.0f           // sample frequency in Hz
+/* in Hz, must be synchronized with imu.c callback */
+#define sampleFreq     50.0f
 #define betaDef                0.1f            // 2 * proportional gain
 
 static float invSqrt(float x)