
2.2.8
API flow chart
Figure 3.
MotionFX API logic sequence
Wait Expiring Timer
Update
Read Acc+Gyr+Mag Data
GetLibVersion
Start
Get MotionFX Outputs
Data Read Interrupt
Initialize
MagCal_Init
getKnobs/setKnobs
Propagate
MagCal_run / MagCal_getParams
2.2.9
Demo code
The following demonstration code reads data from the accelerometer, gyroscope and magnetometer sensors and
gets the rotation, quaternions, gravity and linear acceleration.
UM2220
MotionFX library
UM2220
-
Rev 7
page 12/24