![]() |
MotionTL Software Library
MotionTL Software Library Documentation
|
MOTION_TL_Exported_Functions
Functions | |
void | MotionTL_Initialize (void) |
Initialize the MotionTL engine. More... | |
void | MotionTL_SetOrientation_Acc (const char *acc_orientation) |
Set the MotionTL accelerometer data orientation. More... | |
void | MotionTL_Update (MTL_input_t *data_in) |
Run tilt algorithm. More... | |
void | MotionTL_GetAngles (MTL_output_t *data_out, MTL_AngleMode_t angleMode) |
Get angles. More... | |
uint8_t | MotionTL_GetLibVersion (char *version) |
Get the library version. More... | |
void | MotionTL_CalibratePosition (float calData[][3], uint32_t nRecords, MTL_CalPosition_t calPosition) |
Calibrate accelerometer in specific position. More... | |
MTL_CalResult_t | MotionTL_GetCalValues (MTL_AccCal_t *accCal) |
Get accelerometer calibration values. More... | |
MTL_CalResult_t | MotionTL_SetCalValues (MTL_AccCal_t *accCal) |
Set accelerometer calibration values. More... | |
Detailed Description
Function Documentation
void MotionTL_CalibratePosition | ( | float | calData[][3], |
uint32_t | nRecords, | ||
MTL_CalPosition_t | calPosition | ||
) |
Calibrate accelerometer in specific position.
- Parameters
-
calData Pointer to 2D array of calibration data calData[nRecords][3] nRecords Number of calibration data records (3 axes per each record) calPosition Calibration position the data belong to
- Return values
-
none
void MotionTL_GetAngles | ( | MTL_output_t * | data_out, |
MTL_AngleMode_t | angleMode | ||
) |
Get angles.
- Parameters
-
data_out Pointer to MTL_output_t structure angleMode Switch mode to return desired angles
- Return values
-
none
MTL_CalResult_t MotionTL_GetCalValues | ( | MTL_AccCal_t * | accCal | ) |
Get accelerometer calibration values.
- Parameters
-
accCal Pointer to calibration values structure
- Return values
-
Enum with calibration result
uint8_t MotionTL_GetLibVersion | ( | char * | version | ) |
Get the library version.
- Parameters
-
version Pointer to an array of 35 char
- Return values
-
Number of characters in the version string
void MotionTL_Initialize | ( | void | ) |
Initialize the MotionTL engine.
- Parameters
-
none
- Return values
-
none
MTL_CalResult_t MotionTL_SetCalValues | ( | MTL_AccCal_t * | accCal | ) |
Set accelerometer calibration values.
- Parameters
-
accCal Pointer to calibration values structure
- Return values
-
Enum with calibration result
void MotionTL_SetOrientation_Acc | ( | const char * | acc_orientation | ) |
Set the MotionTL accelerometer data orientation.
- Parameters
-
*acc_orientation reference system of the accelerometer raw data (for instance: south west up became "swu", north east up became "ned")
- Return values
-
none
void MotionTL_Update | ( | MTL_input_t * | data_in | ) |
Run tilt algorithm.
- Parameters
-
data_in Pointer to accaleration in [g]
- Return values
-
none
Generated on Fri Aug 25 2017 11:05:08 for MotionTL Software Library by
