Go back to:
Accelerometer
All accelerometers provide the following functions:
Method
- calibrateX
- Manually calibrate the X axis.
- calibrateY
- Manually calibrate the Y axis.
- calibrateZ
- Manually calibrate the Z axis.
- calibrate
- Manually calibrate the X, Y and Z axes all in one go.
- getX
- Returns the X axis acceleration in mG (1/1000ths of the gravitational constant) from the last read().
- getY
- Returns the Y axis acceleration in mG (1/1000ths of the gravitational constant) from the last read().
- getZ
- Returns the Z axis acceleration in mG (1/1000ths of the gravitational constant) from the last read().
The following classes provide additional functionality