NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char SetNXTLineLeaderSetpoint ( const byte &  port,
const byte &  i2caddr,
const byte &  value 
)
inline

Write NXTLineLeader setpoint.

Write a new setpoint value to the NXTLineLeader device. The Set Point is a value you can ask sensor to maintain the average to. The default value is 45, whereby the line is maintained in center of the sensor. If you need to maintain line towards left of the sensor, set the Set Point to a lower value (minimum: 10). If you need it to be towards on the right of the sensor, set it to higher value (maximum: 80). Set point is also useful while tracking an edge of dark and light areas. The port must be configured as a Lowspeed port before using this function.

Parameters
portThe sensor port. See NBC Input port constants.
i2caddrThe sensor I2C address. See sensor documentation for this value.
valueThe new setpoint value (10..80).
Returns
A status code indicating whether the operation completed successfully or not. See CommLSCheckStatusType for possible Result values.
Examples:
ex_NXTLineLeader.nxc.