Eigen Revision

Dependencies:   mbed LPS25HB_I2C LSM9DS1 PIDcontroller Autopilot_Eigen LoopTicker GPSUBX_UART_Eigen SBUS_without_mainfile MedianFilter Eigen UsaPack solaESKF_Eigen Vector3 CalibrateMagneto FastPWM

Revision:
88:be349faa1976
Parent:
87:89bbbcdb667b
Child:
89:c9f64bd655d9
--- a/imu.cpp	Wed Oct 20 01:50:52 2021 +0000
+++ b/imu.cpp	Thu Oct 21 06:41:03 2021 +0000
@@ -2,5 +2,14 @@
 
 void getIMUval()
 {
-    
+        lsm.readAccel();
+        //lsm.readMag();
+        lsm.readGyro();
+        //printf("%f %f %f %f %f %f %f %f %f\n", lsm.ax, lsm.ay, lsm.az, lsm.gx, lsm.gy, lsm.gz, lsm.mx, lsm.my, lsm.mz);
+        //printf("%f %f %f\n", lsm.gx, lsm.gy, lsm.gz);
+        //printf("%f %f %f\n", lsm.mx, lsm.my, lsm.mz);
+        //float pressure = lps.readPressureMillibars();
+        //float altitude = lps.pressureToAltitudeMeters(pressure);
+        //float temperature = lps.readTemperatureC();
+        //printf("p:%.2f\t mbar\ta:%.2f m\tt:%.2f deg C\r\n",pressure,altitude,temperature);
 }   
\ No newline at end of file