.captureaccel Method
Function: |
Measures and stores the acceleration along the three axes (X, Y, and Z) of the accelerometer. |
Syntax: |
sys.captureaccel |
Returns: |
--- |
See Also: |
sys.configaccel, sys.readaccelx, sys.readaccely, sys.readaccelz |
Details
This method measures and stores the acceleration along the accelerometer's three axes (X, Y, and Z). Before measuring acceleration along the three axes (X, Y, and Z) with this syscall, the accelerometer must first be initialized using the sys.configaccel method. The data captured by sys.captureaccel is accessible through sys.readaccelx, sys.readaccely, and sys.readaccelz. Until sys.captureaccel is executed again, the values for X, Y, and Z axes will remain the same and will return the previous measurements.
See TPP2(G3) Onboard Sensors for more information.
Supported in TPP Gen. 3 boards.