Subversion Repositories svnkaklik

Rev

Details | Last modification | View Log

Rev Author Line No. Line
377 kakl 1
switch (cros[n].id)
2
{
3
    case 1:
379 kakl 4
        azimut=read_azimut_mag();
380 kakl 5
        if ((azimut>0)&&(azimut<100))
379 kakl 6
        {
380 kakl 7
            if(azimut>0) SlowLeft(); else SlowRight();
379 kakl 8
            korekce=1;
9
        };
377 kakl 10
        break;
380 kakl 11
    case 2:
12
        azimut=read_azimut_mag();
13
        if ((azimut>0)&&(azimut<80))
14
        {
15
            if(azimut>0) SlowLeft(); else SlowRight();
16
            korekce=1;
17
        };
377 kakl 18
        break;
379 kakl 19
    case 3:
380 kakl 20
        azimut=read_azimut_mag();
21
        if ((azimut>0)&&(azimut<100))
22
        {
23
            if(azimut>40) SlowLeft(); else SlowRight();
24
            korekce=1;
25
        };
379 kakl 26
        break;
27
    case 4:
380 kakl 28
        azimut=read_azimut_mag();
29
        if ((azimut>0)&&(azimut<100))
30
        {
31
            if(azimut>45) SlowLeft(); else SlowRight();
379 kakl 32
            korekce=1;
380 kakl 33
        };
379 kakl 34
        break;
35
    case 5:
36
        TL(176);
37
        last_cross=cros[n].id;
38
        break;
39
    case 6:
40
        TL(168);
41
        last_cross=cros[n].id;
42
        break;
43
    case 7:
44
        TR(230);
45
        last_cross=cros[n].id;
46
        break;
47
    case 8:
48
        TL(38);
49
        last_cross=cros[n].id;
50
        break;
51
    case 9:
52
        TL(1);
53
        last_cross=cros[n].id;
54
        break;
377 kakl 55
};
379 kakl 56