PmodNAV test

Dependencies:   mbed LPS25HB_I2C LSM9DS1 UsaPack

Revision:
4:1f382a93d438
Parent:
1:e5d5afc20fe2
Child:
5:1d594d188e0f
--- a/main.cpp	Wed Oct 20 04:24:26 2021 +0000
+++ b/main.cpp	Mon Dec 13 11:48:34 2021 +0000
@@ -3,7 +3,7 @@
 #include "LPS.h"
 
 Serial pc(USBTX, USBRX);
-Serial twelite(PE_8, PE_7);
+//Serial twelite(PE_8, PE_7);
 
 I2C i2c(PB_9, PB_8);
 LSM9DS1 lsm(i2c);
@@ -38,7 +38,7 @@
         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);
-        pc.printf("%f %f %f %f %f %f %f %f %f %f\r\n", lsm.ax, lsm.ay, lsm.az, lsm.gx, lsm.gy, lsm.gz, lsm.mx, lsm.my, lsm.mz, pressure);
+        pc.printf("%f %f %f %f %f %f %f %f %f %f\r\n", lsm.ax, lsm.ay, lsm.az, lsm.gx, lsm.gy, lsm.gz, lsm.mx, lsm.my, lsm.mz,altitude);
         wait(0.1);
     }
 }
\ No newline at end of file