From fee9cc71698889a8e688161e6f9f9277092793ee Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Tue, 25 Nov 2014 23:21:15 +0100 Subject: [PATCH] imu: set sample freq to 50hz --- imuboard/MadgwickAHRS.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/imuboard/MadgwickAHRS.c b/imuboard/MadgwickAHRS.c index c6dfaee..b9a7b91 100644 --- a/imuboard/MadgwickAHRS.c +++ b/imuboard/MadgwickAHRS.c @@ -34,9 +34,8 @@ #include "MadgwickAHRS.h" #include -//#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) -- 2.39.5