.readaccely Property
Function: |
Returns the signed short integer value of y-axis in mg. |
Syntax: |
sys.readaccely as integer |
Returns: |
Latest acceleration value along the Y-axis (in mg). |
See Also: |
sys.captureaccel, sys.configaccel, sys.readaccelx, sys.readaccelz |
Details
This property returns the signed short integer value of y-axis and should be accessed after executing sys.captureaccel, which updates the most recent Y-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.readaccely will continue returning the previous Y-axis value.
*1mg ≈ 9.8mm/s^2
See TPP2(G3) Onboard Sensors for more information.
Supported in TPP Gen. 3 boards.