Commits

Jody McAdams committed 28170e7

moved some stuff around

Comments (0)

Files changed (1)

Sensors/Gyro/Gyro.ino

 #include <Wire.h>
 #include <MathUtil.h>
 
+//Allow the gyroscope values to be filtered to reduce noise
+#define ENABLE_FILTERING false
+
+//Enable auto-calibration of gyroscope
 #define ENABLE_CALIBRATION true
 
-//Temporarily made up numbers
-//TODO: do some measurements to figure these numbers out
-const float temperature_Min = 35.0f;
-const float temperature_Max = 100.0f;
-
 float calibrationTimer = 2.0f; //seconds
 
 #if ENABLE_CALIBRATION
 
 const int sensorRotationScaleDPS = 250; //(can be 250, 500, or 2000)
 
-//Allow the gyroscope values to be filtered to reduce noise
-#define ENABLE_FILTERING false
-
 //Used for low pass filtering
 const float lowPassFilteringFactor = 0.1f;
 
 
 float temperature = 0.0f;
 
+//Temporarily made up numbers
+//TODO: do some measurements to figure these numbers out
+const float temperature_Min = 35.0f;
+const float temperature_Max = 100.0f;
+
 //last time in ms
 float lastTimeMS;