This program uses the MMA8451 & MAG3110 on a KL-46 freedom board to implement a tilt compensated eCompass with the heading displayed on the LCD. This program uses the mbed RTOS to manage the hard real time requirements of the eCompass algorithm (Updated to mbed-os 5.x using eventqueues)
Dependencies: MAG3110 MMA8451Q SLCD eCompass_Lib
Fork of KL46_eCompass by
Diff: main.cpp
- Revision:
- 5:7b95c2f8e76e
- Parent:
- 4:ba1dbfb683fb
- Child:
- 6:95bced85b8e5
--- a/main.cpp Sun May 18 15:59:34 2014 +0000 +++ b/main.cpp Sun Feb 04 13:54:44 2018 +0000 @@ -2,7 +2,6 @@ #include "eCompass_Lib.h" #include "MAG3110.h" #include "MMA8451Q.h" -#include "rtos.h" #include "SLCD.h" #define MMA8451_I2C_ADDRESS (0x1d<<1)