NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
bool ReadSensorHTIRSeeker ( const byte  port,
byte &  dir,
byte &  s1,
byte &  s3,
byte &  s5,
byte &  s7,
byte &  s9 
)
inline

Read HiTechnic IRSeeker values.

Read direction, and five signal strength values from the HiTechnic IRSeeker 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.
dirThe direction.
s1The signal strength from sensor 1.
s3The signal strength from sensor 3.
s5The signal strength from sensor 5.
s7The signal strength from sensor 7.
s9The signal strength from sensor 9.
Returns
The function call result.
Examples:
ex_ReadSensorHTIRSeeker.nxc.