MotionFX Software Library: MOTION_FX_Exported_Functions

Motion FX

MotionFX Software Library
MotionFX Software Library Documentation
MOTION_FX_Exported_Functions

Functions

void MotionFX_initialize (void)
 Initialize the MotionFX engine. More...
 
void MotionFX_setKnobs (MFX_knobs_t *knobs)
 Set the internal knobs. More...
 
void MotionFX_getKnobs (MFX_knobs_t *knobs)
 Get the current internal knobs. More...
 
MFX_engine_state_t MotionFX_getStatus_6X (void)
 Get the status of the 6 axes library. More...
 
MFX_engine_state_t MotionFX_getStatus_9X (void)
 Get the status of the 9 axes library. More...
 
void MotionFX_enable_6X (MFX_engine_state_t enable)
 Enable or disable the 6 axes function (ACC + GYRO) More...
 
void MotionFX_enable_9X (MFX_engine_state_t enable)
 Enable or disable the 9 axes function (ACC + GYRO + MAG) More...
 
void MotionFX_setGbias (float *gbias)
 Set the initial gbias. More...
 
void MotionFX_getGbias (float *gbias)
 Get the initial gbias. More...
 
void MotionFX_update (MFX_output_t *data_out, MFX_input_t *data_in, float eml_deltatime, float *eml_q_update)
 Run the Kalman filter update. More...
 
void MotionFX_propagate (MFX_output_t *data_out, MFX_input_t *data_in, float eml_deltatime)
 Run the Kalman filter propagate. More...
 
void MotionFX_MagCal_init (int sampletime, unsigned short int enable)
 Initialize the compass calibration library. More...
 
void MotionFX_MagCal_run (MFX_MagCal_input_t *data_in)
 Run magnetic calibration algorithm. More...
 
void MotionFX_MagCal_getParams (MFX_MagCal_output_t *data_out)
 Get magnetic calibration parameters. More...
 
uint8_t MotionFX_GetLibVersion (char *version)
 Get the library version. More...
 

Detailed Description

Function Documentation

void MotionFX_enable_6X ( MFX_engine_state_t  enable)

Enable or disable the 6 axes function (ACC + GYRO)

Parameters
enable1 to enable, 0 to disable
Return values
none
void MotionFX_enable_9X ( MFX_engine_state_t  enable)

Enable or disable the 9 axes function (ACC + GYRO + MAG)

Parameters
enable1 to enable, 0 to disable
Return values
none
void MotionFX_getGbias ( float *  gbias)

Get the initial gbias.

Parameters
pointerto a float array containing the 3 gbias values
Return values
none
void MotionFX_getKnobs ( MFX_knobs_t knobs)

Get the current internal knobs.

Parameters
knobsknobs structure
Return values
None
uint8_t MotionFX_GetLibVersion ( char *  version)

Get the library version.

Parameters
versionpointer to an array of 35 char
Return values
Numberof characters in the version string
MFX_engine_state_t MotionFX_getStatus_6X ( void  )

Get the status of the 6 axes library.

Return values
1if enabled, 0 if disabled
MFX_engine_state_t MotionFX_getStatus_9X ( void  )

Get the status of the 9 axes library.

Return values
1if enabled, 0 if disabled
void MotionFX_initialize ( void  )

Initialize the MotionFX engine.

Parameters
none
Return values
none
void MotionFX_MagCal_getParams ( MFX_MagCal_output_t data_out)

Get magnetic calibration parameters.

Parameters
data_outstructure containing output data
Return values
none
void MotionFX_MagCal_init ( int  sampletime,
unsigned short int  enable 
)

Initialize the compass calibration library.

Parameters
sampletimeperiod in milliseconds [ms] between the update function call
enableenable (1) or disable (0) library
Return values
none
void MotionFX_MagCal_run ( MFX_MagCal_input_t data_in)

Run magnetic calibration algorithm.

Parameters
data_instructure containing input data
Return values
none
void MotionFX_propagate ( MFX_output_t data_out,
MFX_input_t data_in,
float  eml_deltatime 
)

Run the Kalman filter propagate.

Parameters
data_outpointer to the MFX_output_t structure
data_inpointer to the MFX_input_t structure
eml_deltatimedelta time between two propagate calls [sec]
Return values
none
void MotionFX_setGbias ( float *  gbias)

Set the initial gbias.

Parameters
gbiaspointer to a float array containing the 3 gbias values
Return values
none
void MotionFX_setKnobs ( MFX_knobs_t knobs)

Set the internal knobs.

Parameters
knobsknobs structure
Return values
None
void MotionFX_update ( MFX_output_t data_out,
MFX_input_t data_in,
float  eml_deltatime,
float *  eml_q_update 
)

Run the Kalman filter update.

Parameters
data_outpointer to the MFX_output_t structure
data_inpointer to the MFX_input_t structure
eml_deltatimedelta time between two propagate calls [sec]
eml_q_updateset to NULL
Return values
none
Generated on Fri May 12 2017 11:19:25 for MotionFX Software Library by   doxygen 1.8.9.1