Mapping Colours to Numbers


The Setup:

For each colour wanted to be mapped, select the check box beside the colour. (image below)

Once you check the box, four spinners will appear.

They represent (in colour code): the lower value, the upper value, the error on the lower value and the error on the upper value.

How it Works:

Once the declared colour is read by a LightSensor on the Robot, at simulation time the value returned will be:

(lower value - lower error) <= RETURNED NUMBER <= (upper value + upper error)

NOTE: On the Real Robot, values returned by LightSensor readings are not single numbers, but rather a range of numbers.


Related topics:

--> Opening LightSensor Prop Dialog