This is a port from the library for Arduino provided by Sparkfun with their breakout board of the LSM9DS0. The original library can be found here: https://github.com/sparkfun/SparkFun_LSM9DS0_Arduino_Library/tree/V_1.0.1 It is also provided an AHRS example based on Madgwick, also a port from an Arduino example. All of this was tested on a Nucleo F411RE and a Sparkfun breakout board.

Dependencies:   mbed

Auto generated API documentation and code listings for LSM9DS0_mbed

Code

AHRS_example.cpp [code]
LSM9DS0_mbed.cpp [code]
LSM9DS0_mbed.h [code]