Rev 276 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
# naportovany algoritmus Callis, ovsem nefunguje.program Callis;var movement, line;#define L 1#define S 2#define R 3line:=2;while truedoif LEYE > 0 or CEYE > 0 then # Cara pod levim sensoremLMOT:=30;RMOT:=30; # jed rovneline:=1; # zaznamenej, kdes videl carucontinue;end;if REYE > 0 or CEYE > 0 thenLMOT:=30;RMOT:=30;line:=3;continue;end;if line=1 thenLMOT:=0;movement:=1;break;elif line=3 thenRMOT:=0;movement:=3;break;end;end;