1st

Fork of LSM9DS0 by LDSC_Robotics_TAs

Revision:
2:48eb33afd0fa
Parent:
1:2c34ccab5256
Child:
3:bc0db184f092
--- a/LSM9DS0.h	Sat Feb 27 09:03:06 2016 +0000
+++ b/LSM9DS0.h	Thu Apr 21 07:50:57 2016 +0000
@@ -21,6 +21,8 @@
 
 #include "mbed.h"
 
+
+#define PI 3.1415
 ////////////////////////////
 // LSM9DS0 Gyro Registers //
 ////////////////////////////
@@ -391,6 +393,9 @@
     I2C i2c_;
     DigitalOut csG_;
     DigitalOut csXM_;
+    
+    float pitch, roll;
+    void complementaryFilter(float * data, float dt);
 
 private:    
     // xmAddress and gAddress store the I2C address or SPI chip select pin
@@ -572,6 +577,8 @@
     // Output: No value is returned by the function, but the registers read are
     //      all stored in the *dest array given.
     void I2CreadBytes(uint8_t address, uint8_t subAddress, uint8_t * dest, uint8_t count);
+    
+    
 };
 
 #endif // SFE_LSM9DS0_H //
\ No newline at end of file