Added external magnetometer functionality
Dependencies: HMC58X31 MODI2C MPU6050 MS561101BA
Fork of FreeIMU by
Diff: FreeIMU.cpp
- Revision:
- 15:ea86489d606b
- Parent:
- 13:21b275eeeda2
- Child:
- 17:48a0eae27bf1
--- a/FreeIMU.cpp Thu Sep 18 08:45:06 2014 +0000 +++ b/FreeIMU.cpp Thu Sep 18 15:47:30 2014 +0000 @@ -420,12 +420,11 @@ } } -//XYZ void FreeIMU::getRate(float * r) { - r[0] = val[5]; //Yaw - r[1] = val[3]; //Pitch - r[2] = val[4]; //Roll + r[0] = val[3]; + r[1] = val[4]; + r[2] = val[5]; } const float def_sea_press = 1013.25;