IMU library

Dependencies:   mbed PinDetect

Revision:
2:0e123c149624
Parent:
1:87d535bf8c53
--- a/LSM9DS1.h	Mon Oct 26 16:14:04 2015 +0000
+++ b/LSM9DS1.h	Fri Mar 12 13:05:46 2021 +0000
@@ -61,6 +61,10 @@
     float gBias[3], aBias[3], mBias[3];
     int16_t gBiasRaw[3], aBiasRaw[3], mBiasRaw[3];
     
+    float gyroX, gyroY, gyroZ; // x, y, and z axis readings of the gyroscope (float value)
+    float accX, accY, accZ; // x, y, and z axis readings of the accelerometer (float value)
+    float magX, magY, magZ; // x, y, and z axis readings of the magnetometer (float value)
+    
     // LSM9DS1 -- LSM9DS1 class constructor
     // The constructor will set up a handful of private variables, and set the
     // communication mode as well.
@@ -312,7 +316,8 @@
     *    Any OR'd combination of ZIEN, YIEN, XIEN
     *  - activeLow = Interrupt active configuration
     *    Can be either INT_ACTIVE_HIGH or INT_ACTIVE_LOW
-    */  - latch: latch gyroscope interrupt request.
+    *  - latch: latch gyroscope interrupt request.
+    */  
     void configMagInt(uint8_t generator, h_lactive activeLow, bool latch = true);
     
     /** configMagThs() -- Configure the threshold of a gyroscope axis