|
@@ -18,6 +18,9 @@ Calib calib;
|
|
|
|
|
|
BMM150class bmm150;
|
|
BMM150class bmm150;
|
|
|
|
|
|
|
|
+float gyro_smoothing = 0.00001;
|
|
|
|
+float ahrs_smoothing = 0.001;
|
|
|
|
+
|
|
float accX = 0.0F;
|
|
float accX = 0.0F;
|
|
float accY = 0.0F;
|
|
float accY = 0.0F;
|
|
float accZ = 0.0F;
|
|
float accZ = 0.0F;
|
|
@@ -67,11 +70,11 @@ Smoothed<float> yaw_smooth;
|
|
Smoothed<float> pitch_smooth;
|
|
Smoothed<float> pitch_smooth;
|
|
Smoothed<float> roll_smooth;
|
|
Smoothed<float> roll_smooth;
|
|
|
|
|
|
-ResponsiveAnalogRead gyro_rar(-1, false, 0.000001);
|
|
+ResponsiveAnalogRead gyro_rar(-1, false, gyro_smoothing);
|
|
|
|
|
|
-ResponsiveAnalogRead yaw_rar(-1, true, 0.001);
|
|
+ResponsiveAnalogRead yaw_rar(-1, true, ahrs_smoothing);
|
|
-ResponsiveAnalogRead pitch_rar(-1, true);
|
|
+ResponsiveAnalogRead pitch_rar(-1, true, ahrs_smoothing);
|
|
-ResponsiveAnalogRead roll_rar(-1, true);
|
|
+ResponsiveAnalogRead roll_rar(-1, true, ahrs_smoothing);
|
|
|
|
|
|
void loadCalibration(const char *calibFile, Calib &calib) {
|
|
void loadCalibration(const char *calibFile, Calib &calib) {
|
|
|
|
|