Read HiTechnic acceleration values.
Read X, Y, and Z axis acceleration values from the HiTechnic Accelerometer sensor. Returns a boolean value indicating whether or not the operation completed successfully. The port must be configured as a Lowspeed port before using this function.
- Parameters
-
port | The sensor port. See Input port constants. |
x | The output x-axis acceleration. |
y | The output y-axis acceleration. |
z | The output z-axis acceleration. |
- Returns
- The function call result.
- Examples:
- ex_ReadSensorHTAccel.nxc.