General IMU Library

Dependencies:   mbed LSM9DS1_Library

Revision:
4:ab08a70e0d7d
Parent:
3:3b572eec3f20
--- a/IMU.h	Thu Feb 16 18:28:00 2017 +0000
+++ b/IMU.h	Thu Feb 16 20:31:35 2017 +0000
@@ -9,7 +9,7 @@
 
 #ifndef IMU_H
 #define IMU_H
- 
+
 #include "mbed.h"
 #include "LSM9DS1.h"
 
@@ -17,10 +17,8 @@
     public:
         /**
         *   Constructor for the IMU
-        *
-        *   @param[in] _state
         */
-        IMU() : _I(p9, p10, 0xD6, 0x3C){};
+        IMU();
         /**
         *   Track the angle of the truck bed
         */
@@ -29,20 +27,20 @@
         *   Track the angle of the truck as it moves
         */
         void trackHeading();
-        
+
     private:
+        LSM9DS1 *I;
         bool state;
         float ax01;
         float ay01;
         float az01;
         float ax0;
         float ay0;
-        float az0; 
+        float az0;
         float ax;
         float ay;
         float az;
         float theta;
-        LSM9DS1 _I;
 };
 
 #endif
\ No newline at end of file