|
Buggy Task 3:
This is a simple task that turns on the red and green led in relation to the light intensity recorded by the light sensor.
The functions of the icons are:
Light sensor - a number between 0 and 5 is sent out from this icon. Notice that the link is in red to show that this is an analog value.
Viewer 1 - this displays the value from the input.
Comparator - this icon makes a comparison between the input and either an internal value or another input. In this case, the comparison is with an internal value. The output of this icon is either an ON/OFF or REVERSE value. The actual value is -1.0. 0.0 or 1.0.
Viewer - This is the same viewer icon but it uses a set of arrows to define the reverse/off/forward values. The status view makes it easier to see the values as colors rather than numeric values.

Light red (ON) - the red led will illuminate when an ON value is received by the icon. The ON condition is set in the property of the light.

Light (RVSE) - links the red led to the strategy. In this case, the light comes on when the icon input is the REVERSE value.

|