imu01c

Revision:
2:4bfc36c368c2
Parent:
1:5d0acf280330
Child:
3:a55edecc96e2
--- a/LSM303D.h	Sat Oct 31 16:28:12 2015 +0000
+++ b/LSM303D.h	Tue Feb 09 07:46:40 2016 +0000
@@ -63,7 +63,7 @@
  *    {
  *      compass.read();
  *      count++;
- *      if (count%10==0) debug.printf("Heading: %5.1f\n\r Pitch: %4.1f\n\r",compass.hdg, compass.elev );
+ *      if (count%10==0) debug.printf("Heading: %5.1f\n\r Pitch: %4.1f\n\r",compass.hdg, compass.pitch );
  *      wait(0.050);
  *    }
  * }
@@ -89,6 +89,10 @@
         //! Pitch
         float  pitch;
         
+        vector min; 
+        
+        vector max; 
+        
         /** Create a new interface for an LSM303D
          *
          * @param sda is the pin for the I2C SDA line
@@ -128,6 +132,12 @@
          */
         void read();
     
+    
+        /** Set Mag Limits 
+         */
+        void set_limits(void);
+    
+    
         /** sets the I2C bus frequency
          *
          * @param frequency is the I2C bus/clock frequency, either standard (100000) or fast (400000)
@@ -145,6 +155,7 @@
         long _filt_ax;
         long _filt_ay;
         long _filt_az;
+
        
         bool write_reg(int addr_i2c,int addr_reg, char v);
         bool read_reg(int addr_i2c,int addr_reg, char *v);