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: MPU9250_SPI mbed
Diff: main.cpp
- Revision:
- 13:3487e01bd5db
- Parent:
- 12:5638ddcd8477
- Child:
- 14:e795854eab64
--- a/main.cpp Fri Jun 17 15:09:49 2016 +0000 +++ b/main.cpp Fri Jun 17 15:11:01 2016 +0000 @@ -9,7 +9,6 @@ #include "mbed.h" #include "MPU9250.h" -#include "KalmanFilter.h" /* MPU9250 Library @@ -252,13 +251,11 @@ } - //define the mpu9250 object mpu9250_spi *imu[2]; MadgwickAHRS *ahrs[2]; Serial pc(USBTX, USBRX); SPI spi(p5, p6, p7); -KalmanFilter *kf[12]; Ticker ticker; float x,y,z,gxOfs,gyOfs,gzOfs; @@ -266,7 +263,6 @@ void resetOffset(void) { - gxOfs = 0.0f; gyOfs = 0.0f; gzOfs = 0.0f; @@ -299,7 +295,6 @@ void init(void) { - pc.baud(921600); imu[0] = new mpu9250_spi(spi, p8);