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

Read HiTechnic IRSeeker2 DC values.

Read direction, five signal strength, and average strength values from the HiTechnic IRSeeker2 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.
avgThe average signal strength.
Returns
The function call result.
Examples:
ex_ReadSensorHTIRSeeker2DC.nxc.