accVector (Function) |
Top Previous Next |
This function will retrieve the current acceleration vector measured by the accelerometer. Returned values are in mg.
Input: None
Output: x : DINT The acceleration force measured on the X-axis (in mg).
y : DINT The acceleration force measured on the Y-axis (in mg).
z : DINT The acceleration force measured on the Z-axis (in mg).
Returns: INT
Declaration: FUNCTION accVector : INT;
Example: INCLUDE rtcu.inc |