OSX MotionFX Software Library: OSX_MOTION_FX_Exported_Functions

OSX MotionFX

OSX MotionFX Software Library
OSX_MOTION_FX_Exported_Functions

Functions

uint8_t osx_MotionFX_initialize (void)
 Initialize the MotionFX engine. More...
 
void osx_MotionFX_setKnobs (osxMFX_knobs *knobs)
 Set the internal knobs. More...
 
void osx_MotionFX_getKnobs (osxMFX_knobs *knobs)
 Get the current internal knobs. More...
 
osxMFX_Engine_State osx_MotionFX_getStatus_6X (void)
 Get the status of the 6 axes library. More...
 
osxMFX_Engine_State osx_MotionFX_getStatus_9X (void)
 Get the status of the 9 axes library. More...
 
void osx_MotionFX_enable_6X (osxMFX_Engine_State enable)
 Enable or disable the 6 axes function (ACC + GYRO) More...
 
void osx_MotionFX_enable_9X (osxMFX_Engine_State enable)
 Enable or disable the 9 axes function (ACC + GYRO + MAG) More...
 
void osx_MotionFX_setGbias (float *gbias)
 Set the initial gbias. More...
 
void osx_MotionFX_getGbias (float *gbias)
 Get the initial gbias. More...
 
void osx_MotionFX_update (osxMFX_output *data_out, osxMFX_input *data_in, float eml_deltatime, float *eml_q_update)
 Run the Kalman filter update. More...
 
void osx_MotionFX_propagate (osxMFX_output *data_out, osxMFX_input *data_in, float eml_deltatime)
 Run the Kalman filter propagate. More...
 
int osx_MotionFX_getLibVersion (char *version)
 Get the library version. More...
 
void osx_MotionFX_compass_init (void)
 Initialize the compass calibration library. More...
 
void osx_MotionFX_compass_saveAcc (int acc_x, int acc_y, int acc_z)
 Save accelerometer data ENU systems coordinate. More...
 
void osx_MotionFX_compass_saveMag (int mag_x, int mag_y, int mag_z)
 Save magnetometer data ENU systems coordinate. More...
 
int osx_MotionFX_compass_run (void)
 Run compass API at 25 Hz. More...
 
unsigned char osx_MotionFX_compass_isCalibrated (void)
 Check if calibration is needed. More...
 
void osx_MotionFX_compass_forceReCalibration (void)
 Force new calibration. More...
 
void osx_MotionFX_getCalibrationData (osxMFX_calibFactor *CalibrationData)
 Get calibration data. More...
 
void osx_MotionFX_setCalibrationData (osxMFX_calibFactor *CalibrationData)
 Set calibration data. More...
 

Detailed Description

Function Documentation

void osx_MotionFX_compass_forceReCalibration ( void  )

Force new calibration.

Return values
None
void osx_MotionFX_compass_init ( void  )

Initialize the compass calibration library.

Return values
None
unsigned char osx_MotionFX_compass_isCalibrated ( void  )

Check if calibration is needed.

Return values
calibrationstatus
int osx_MotionFX_compass_run ( void  )

Run compass API at 25 Hz.

Return values
None
void osx_MotionFX_compass_saveAcc ( int  acc_x,
int  acc_y,
int  acc_z 
)

Save accelerometer data ENU systems coordinate.

Parameters
acc_xaccelerometer x coordinate in [mg]
acc_yaccelerometer y coordinate in [mg]
acc_zaccelerometer z coordinate in [mg]
Return values
None
void osx_MotionFX_compass_saveMag ( int  mag_x,
int  mag_y,
int  mag_z 
)

Save magnetometer data ENU systems coordinate.

Parameters
mag_xmagnetometer x coordinate in [mG]
mag_ymagnetometer y coordinate in [mG]
mag_zmagnetometer z coordinate in [mG]
Return values
None
void osx_MotionFX_enable_6X ( osxMFX_Engine_State  enable)

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

Parameters
enable1 to enable, 0 to disable
Return values
None
void osx_MotionFX_enable_9X ( osxMFX_Engine_State  enable)

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

Parameters
enable1 to enable, 0 to disable
Return values
None
void osx_MotionFX_getCalibrationData ( osxMFX_calibFactor CalibrationData)

Get calibration data.

Parameters
CalibrationDatapointer to calibration data structure
Return values
None
void osx_MotionFX_getGbias ( float *  gbias)

Get the initial gbias.

Parameters
pointerto a float array containing the 3 gbias values
Return values
None
void osx_MotionFX_getKnobs ( osxMFX_knobs knobs)

Get the current internal knobs.

Parameters
knobsknobs structure
Return values
None
int osx_MotionFX_getLibVersion ( char *  version)

Get the library version.

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

Get the status of the 6 axes library.

Return values
1if enabled, 0 if disabled
osxMFX_Engine_State osx_MotionFX_getStatus_9X ( void  )

Get the status of the 9 axes library.

Return values
1if enabled, 0 if disabled
uint8_t osx_MotionFX_initialize ( void  )

Initialize the MotionFX engine.

Return values
1in case of success, 0 otherwise
void osx_MotionFX_propagate ( osxMFX_output data_out,
osxMFX_input data_in,
float  eml_deltatime 
)

Run the Kalman filter propagate.

Parameters
data_outpointer to the osxMFX_output structure
data_inpointer to the osxMFX_input structure
eml_deltatimedelta time between two propagate calls [sec]
Return values
None
void osx_MotionFX_setCalibrationData ( osxMFX_calibFactor CalibrationData)

Set calibration data.

Parameters
CalibrationDatapointer to calibration data structure
Return values
None
void osx_MotionFX_setGbias ( float *  gbias)

Set the initial gbias.

Parameters
gbiaspointer to a float array containing the 3 gbias values
Return values
None
void osx_MotionFX_setKnobs ( osxMFX_knobs knobs)

Set the internal knobs.

Parameters
knobsknobs structure
Return values
None
void osx_MotionFX_update ( osxMFX_output data_out,
osxMFX_input data_in,
float  eml_deltatime,
float *  eml_q_update 
)

Run the Kalman filter update.

Parameters
data_outpointer to the osxMFX_output structure
data_inpointer to the osxMFX_input structure
eml_deltatimedelta time between two propagate calls [sec]
eml_q_updateset to NULL
Return values
None
Generated on Tue Apr 5 2016 17:29:15 for OSX MotionFX Software Library by   doxygen 1.8.8