get_IR_data()
#
DescriptionGet the reading from the IR sensors and the index specified.
#
Syntaxget_IR_data(ir_sensor_index)
#
Parametersir_sensor_index: Integer from 0 to 5.
IR sensor indices:
- 0 IR.FRONT_RIGHT = Front right sensor
- 1 IR.BOTTOM_RIGHT = Bottom right sensor
- 2 IR.BACK_RIGHT = Back right sensor
- 3 IR.BOTTOM_LEFT = Bottom left sensor
- 4 IR.BACK_LEFT = Back left sensor
- 5 IR.FRONT_LEFT = Front left sensor
#
ReturnsValue between 0 and 255.