Showing the changes to interface/src/SerialInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -5,18 +5,23 @@ · 4 unmodified lines | |||
| 5 | // Read interface data from the gyros/accelerometer Invensense board using the SerialUSB | 5 | // Read interface data from the gyros/accelerometer Invensense board using the SerialUSB |
| 6 | // | 6 | // |
| 7 | 7 | ||
| 8 | #include "SerialInterface.h" | ||
| 9 | #include "SharedUtil.h" | ||
| 10 | #include "Util.h" | ||
| 11 | #include <glm/gtx/vector_angle.hpp> | ||
| 12 | #include <math.h> | ||
| 13 | |||
| 14 | #ifdef __APPLE__ | 8 | #ifdef __APPLE__ |
| 15 | #include <regex.h> | 9 | #include <regex.h> |
| 16 | #include <sys/time.h> | 10 | #include <sys/time.h> |
| 17 | #include <string> | 11 | #include <string> |
| 18 | #endif | 12 | #endif |
| 19 | 13 | ||
| 14 | #include <math.h> | ||
| 15 | |||
| 16 | #include <glm/gtx/vector_angle.hpp> | ||
| 17 | |||
| 18 | #include <SharedUtil.h> | ||
| 19 | |||
| 20 | #include "Application.h" | ||
| 21 | #include "SerialInterface.h" | ||
| 22 | #include "Util.h" | ||
| 23 | #include "Webcam.h" | ||
| 24 | |||
| 20 | const short NO_READ_MAXIMUM_MSECS = 3000; | 25 | const short NO_READ_MAXIMUM_MSECS = 3000; |
| 21 | const int GRAVITY_SAMPLES = 60; // Use the first few samples to baseline values | 26 | const int GRAVITY_SAMPLES = 60; // Use the first few samples to baseline values |
| 22 | const int SENSOR_FUSION_SAMPLES = 20; | 27 | const int SENSOR_FUSION_SAMPLES = 20; |