.readaccelx Property
Function: |
Returns the signed short integer value of x-axis in mg. |
Syntax: |
sys.readaccelx as integer |
Returns: |
Latest acceleration value along the X-axis (in mg). |
See Also: |
sys.captureaccel, sys.configaccel, sys.readaccely, sys.readaccelz |
Details
This property returns the signed short integer value of x-axis and should be accessed after executing sys.captureaccel, which updates the most recent X-axis acceleration data. The value returned by sys.readaccelx is in mg* and is updated each time sys.captureaccel is called. If sys.captureaccel is not called again, sys.readaccelx will continue returning the previous X-axis value.
*1mg ≈ 9.8mm/s^2
See TPP2(G3) Onboard Sensors for more information.
Supported in TPP Gen. 3 boards.