Subversion Repositories svnkaklik

Rev

Rev 294 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 294 Rev 295
Line 1... Line 1...
1
program example_program;
1
program example_program;
2
 
2
 
3
var i;
3
var i;
4
var ble;
4
var ble;
-
 
5
var last;
5
 
6
 
6
LMOT := 30;
7
LMOT := 30;
7
RMOT := -30;
8
RMOT := -30;
8
 
9
 
9
ble:=0;
10
ble:=0;
Line 13... Line 14...
13
RMOT := 30;
14
RMOT := 30;
14
 
15
 
15
ble:=0;
16
ble:=0;
16
while ble<125 do ble:=ble+1; end;	
17
while ble<125 do ble:=ble+1; end;	
17
 
18
 
18
LMOT := 30;
-
 
19
RMOT := -30;
-
 
20
 
-
 
21
while true
19
while true
22
do
20
do
-
 
21
	if LEYE = 1 and REYE = 1 and RFTOUCH = 0 and LFTOUCH = 0 and RRTOUCH = 0 and LRTOUCH = 0 then
23
	if LEYE = 1 and REYE = 1 then
22
		if last=1 then	
-
 
23
		 RMOT := 30;
-
 
24
		 LMOT := -30;
-
 
25
		else
24
		LMOT := 30;
26
		 LMOT := 30;
25
		RMOT := -30;
27
		 RMOT := -30;
-
 
28
		end;
26
	end;
29
	end;
27
 
30
 
28
	if LEYE = 0 then
31
	if LEYE = 0 then
29
		LMOT := -30;
32
		LMOT := -30;
-
 
33
		RMOT := -30;
30
		continue;
34
		continue;
31
	end;
35
	end;
32
	if REYE = 0 then
36
	if REYE = 0 then
33
		RMOT := -30;
37
		RMOT := -30;
-
 
38
		LMOT := 30;
34
		continue;
39
		continue;
35
	end;
40
	end;
36
	if LRTOUCH = 1 then
41
	if LRTOUCH = 1 then
37
		RMOT := -30;
42
		RMOT := -30;
38
		LMOT := -20;
43
		LMOT := -30;
-
 
44
		last := 1;
39
	end;
45
	end;
40
	if RRTOUCH = 1 then
46
	if RRTOUCH = 1 then
41
		LMOT :=-30;
47
		LMOT :=-30;
42
		RMOT :=-20;
48
		RMOT :=-30;
-
 
49
		last := 0;
43
	end;
50
	end;
44
 
51
 
45
	if RFTOUCH = 1 and LFTOUCH =1 then
52
	if RFTOUCH = 1 and LFTOUCH =1 then
46
		LMOT :=30;
53
		LMOT :=30;
47
		RMOT := 30;
54
		RMOT := 30;