NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorHTAngle ( const byte  port,
int &  Angle,
long &  AccAngle,
int &  RPM 
)
inline

Read HiTechnic Angle sensor values.

Read values from the HiTechnic Angle 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
portThe sensor port. See Input port constants.
AngleCurrent angle in degrees (0-359).
AccAngleAccumulated angle in degrees (-2147483648 to 2147483647).
RPMrotations per minute (-1000 to 1000).
Returns
The function call result.
Examples:
ex_ReadSensorHTAngle.nxc.