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: HMC58X3 AK8963 MS561101BA MODI2C MPU9250
Dependents: MTQuadControl FreeIMU_serial FreeIMU_demo
You are viewing an older revision! See the latest version
Homepage
Port of FreeIMU library from Arduino to Mbed¶
10DOF FreeIMU port for FreeIMU v4 board and GY-86. This library was modified extensively to specifically suit the Mbed platform. Used threads and interrupts to achieve async mode. Maximum sampling rate of 500hz can be achieved using this library.
Usage¶
Declare a global FreeIMU object like the one below. There should only be one FreeIMU instance existing at a time.
#include "mbed.h"
#include "FreeIMU.h"
FreeIMU imu;
int main(){
imu.init(true);
}
Then, at anywhere in the code, you may call imu.getQ(q) to get the quarternion, where q is an array of 4 floats representing the quarternion structure.