![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Projet d'interfaçage - LSM6DS3 : Test de Stabilité Quentin NOIRET LP MECSE 2020 -------------------------------------------------- L’application réalisée permet de tester la stabilité d’un système (ex : drone) en affichant différents seuils d’inclinaison en fonction des valeurs de l’accéléromètre.
Dependencies: Interfacage_MECSE_LSM6DS3 mbed LSM6DS3
Diff: main.cpp
- Revision:
- 3:c450734baa8b
- Parent:
- 1:acf696b18c52
- Child:
- 6:16ba206a4253
--- a/main.cpp Thu Jun 16 20:32:55 2016 +0000 +++ b/main.cpp Mon Jun 20 19:16:14 2016 +0000 @@ -16,7 +16,15 @@ { // Use the begin() function to initialize the LSM9DS0 library. // You can either call it with no parameters (the easy way): - uint16_t status = imu.begin(); + // SLEEP + //uint16_t status = imu.begin(imu.G_SCALE_245DPS, imu.A_SCALE_2G, +// imu.G_POWER_DOWN, imu.A_POWER_DOWN); + // LOWEST + //uint16_t status = imu.begin(imu.G_SCALE_245DPS, imu.A_SCALE_2G, +// imu.G_ODR_13_BW_0, imu.A_ODR_13); + // HIGHEST + uint16_t status = imu.begin(imu.G_SCALE_2000DPS, imu.A_SCALE_8G, + imu.G_ODR_1660, imu.A_ODR_6660); //Make sure communication is working pc.printf("LSM6DS3 WHO_AM_I's returned: 0x%X\r\n", status);