octoliner-line

amperka/octoliner/octoliner-line

A quick-start node which represents Octoliner board tracking the line. The line tracking values lays in the range [-1,1]. The 0 value shows that line is at the center position relative to the sensors (between CH3 and CH4). The -1 value corresponds to the extreme left position (CH0) while the 1 to the extreme right (CH1). On boot node initialasizes the oprocoupler sensors and sets up their default brightness and sensitivity parameters. Possible errors: — Invalid I2C address
octoliner-line
@/octoliner-line
A quick-start node which represents Octoliner board tracking the line. The line tracking values lays in the range [-1,1]. The 0 value shows that line is at the center position relative to the sensors (between CH3 and CH4). The -1 value corresponds to the extreme left position (CH0) while the 1 to the extreme right (CH1). On boot node initialasizes the oprocoupler sensors and sets up their default brightness and sensitivity parameters. Possible errors: — Invalid I2C address
I2Cxod/i2c/i2c
ADDRbyte
I²C address. 2Ah by default.
UPDpulse
Triggers a new read.
octoliner-line
I2C
ADDR
UPD
LINE
OK
OKpulse
Fires if a reading is done.
LINEnumber
Last calculated line tracking value in the range [-1,1]. The 0 value shows that line is at the center position relative to the sensors. The -1 value corresponds to the extreme left position while the 1 to the extreme right.
To use the node in your project you should have the amperka/octoliner library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.