This my big project for PYRN Board

Dependencies:   CAN HTTPClient MODSERIAL MyThings Pyrn3GModem Socket TinyGPS MyUSBHost lwip-sys lwip mbed-rtos mbed-src

Revision:
0:efe6085327fd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IMUSensor.h	Tue Apr 14 13:30:02 2015 +0000
@@ -0,0 +1,30 @@
+#ifndef IMU_SENSOR_H
+#define IMU_SENSOR_H
+
+#include "mbed.h"
+#include "MySensor.h"
+#include "LSM303DLH.h"
+
+#define IMU_STORE_SIZE      128
+
+class IMUSensor: public MySensor {
+protected:
+    uint16_t store[IMU_STORE_SIZE];
+    typedef struct _imuImpact{
+        int16_t ax;
+        int16_t ay;
+        int16_t az;
+        int16_t mx;
+        int16_t my;
+        int16_t mz;
+    }  __attribute__((packed)) imuImpact;
+    imuImpact   impact;
+    LSM303DLH   Accelerometer;
+public:
+    IMUSensor(PinName sda, PinName scl, uint32_t idle = 1000);
+    virtual void InitResultsStatic(void);
+    virtual void Loop(void);
+    virtual void StoreLastImpact(void);
+};
+
+#endif // IMU_SENSOR_H
\ No newline at end of file