#define SetNXTLineLeaderSetpoint ( _port,
_i2caddr,
_value,
_result   )     __MSWriteToRegister(_port, _i2caddr, NXTLL_REG_SETPOINT, _value, _result)

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:
_port The sensor port. See NBC Input port constants.
_i2caddr The sensor I2C address. See sensor documentation for this value.
_value The new setpoint value (10..80).
_result A status code indicating whether the operation completed successfully or not. See TCommLSCheckStatus for possible Result values.

Generated by  doxygen 1.6.2