RV.COLORINPUT

Command:

RV.COLORINPUT

Command Syntax:

RV.COLORINPUT

Code
Sample:

Send("READ RV.COLORINPUT")

Get(C)

Range:

1 thru 9

Describe:

Bottom-mounted color sensor detects the color of the surface. Can also detect gray-level scale of black (0) to white (255).

 

Result:

Returns current color sensor information.

The return value is in the 1 – 9 range which maps to the colors below:

Color

Return value

Red

1

Green

2

Blue

3

Cyan

4

Magenta

5

Yellow

6

Black

7

White

8

Gray

9

Type or
Addressable Component:

Sensor

Note: This Rover sensor command is executed immediately.