Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed LPS25HB_I2C LSM9DS1 UsaPack
Revision 4:1f382a93d438, committed 2021-12-13
- Comitter:
- NaotoMorita
- Date:
- Mon Dec 13 11:48:34 2021 +0000
- Parent:
- 1:e5d5afc20fe2
- Child:
- 5:1d594d188e0f
- Commit message:
- now test
Changed in this revision
| LSM9DS1.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/LSM9DS1.lib Wed Oct 20 04:24:26 2021 +0000 +++ b/LSM9DS1.lib Mon Dec 13 11:48:34 2021 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/HAPSRG/code/LSM9DS1/#8b71897cb24e +https://os.mbed.com/teams/HAPSRG/code/LSM9DS1/#ac533087fb16
--- 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