These programs were written by two students from the École Centrale de Nantes.
| Follow a border with one light sensor |

|
module example1 : input LIGHT_LOW_1; output MOTOR_A_SPEED(integer),MOTOR_C_SPEED(integer), MOTOR_A_DIR(integer), MOTOR_C_DIR(integer); output SET_LIGHT_1_THRESHHOLD : integer; constant MOTOR_FWD, MOTOR_REV : integer;
emit SET_LIGHT_1_THRESHHOLD(80);
|
| Follow a line with one light sensor |

|
module example2 : input LIGHT_LOW_1,LIGHT_HIGH_1; output MOTOR_A_SPEED(integer),MOTOR_C_SPEED(integer), MOTOR_A_DIR(integer),MOTOR_C_DIR(integer); output SET_LIGHT_1_THRESHHOLD : integer; constant MOTOR_FWD,
MOTOR_REV : integer;
emit SET_LIGHT_1_THRESHHOLD(80);
|
| Follow a border with two light sensors |

|
module example3 : input LIGHT_LOW_1,LIGHT_HIGH_1; input LIGHT_LOW_2,LIGHT_HIGH_2; output MOTOR_A_SPEED(integer),MOTOR_C_SPEED(integer),
constant MOTOR_FWD, MOTOR_REV : integer;
emit SET_LIGHT_1_THRESHHOLD(80);
|
| Follow a line with two light sensors |

|
module example4 : input LIGHT_LOW_1,LIGHT_HIGH_1; input LIGHT_LOW_2,LIGHT_HIGH_2; output MOTOR_A_SPEED(integer),MOTOR_C_SPEED(integer),
constant MOTOR_FWD, MOTOR_REV : integer;
emit SET_LIGHT_1_THRESHHOLD(80);
|