.readaccelz Property

Function:

Returns the signed short integer value of z-axis in mg.

Syntax:

sys.readaccelz as integer

Returns:

Latest acceleration value along the Z-axis (in mg).

See Also:

sys.captureaccel, sys.configaccel, sys.readaccelx, sys.readaccely


Details

This property returns the signed short integer value of z-axis and should be accessed after executing sys.captureaccel, which updates the most recent Z-axis acceleration data. The value returned by sys.readaccelz is in mg* and is updated each time sys.captureaccel is called. If sys.captureaccel is not called again, sys.readaccelz will continue returning the previous Z-axis value.

*1mg ≈ 9.8mm/s^2

See TPP2(G3) Onboard Sensors for more information.

Supported in TPP Gen. 3 boards.


.readaccelz Property

Details