Rev 275 | Rev 277 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
program Orbis;var line, Rychlost;#define L 1#define S 2#define R 3line:=2;Rychlost:=15; # omezeni rychlosti (hlavne pro ladici ucely)while truedoif LEYE > 0 and CEYE > 0 then # Cara pod levim sensoremLMOT:=0;RMOT:=Rychlost; # jed rovneline:=1; # zaznamenej, kdes videl carucontinue;end;if REYE > 0 and CEYE > 0 thenLMOT:=Rychlost;RMOT:=0;line:=3;continue;end;if CEYE > 0 thenLMOT:=Rychlost;RMOT:=Rychlost;line:=2;continue;end;end;