Subversion Repositories svnkaklik

Rev

Rev 379 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 379 Rev 380
Line 1... Line 1...
1
switch (cros[n].id)
1
switch (cros[n].id)
2
{
2
{
3
    case 1:
3
    case 1:
4
//        TL(20);
-
 
5
        azimut=read_azimut_mag();
4
        azimut=read_azimut_mag();
6
        if ((azimut>0)&&(azimut<45))
5
        if ((azimut>0)&&(azimut<100))
7
        {
6
        {
8
            if(azimut>20) SlowLeft(); else SlowRight();
7
            if(azimut>0) SlowLeft(); else SlowRight();
9
            korekce=1;
8
            korekce=1;
10
        };
9
        };
11
//        last_cross=cros[n].id;
-
 
12
        break;
10
        break;
13
    case 10:
11
    case 2:
-
 
12
        azimut=read_azimut_mag();
-
 
13
        if ((azimut>0)&&(azimut<80))
14
        TR(250);
14
        {
-
 
15
            if(azimut>0) SlowLeft(); else SlowRight();
15
        last_cross=cros[n].id;
16
            korekce=1;
-
 
17
        };
16
        break;
18
        break;
17
    case 3:
19
    case 3:
-
 
20
        azimut=read_azimut_mag();
-
 
21
        if ((azimut>0)&&(azimut<100))
18
        TR(195);
22
        {
-
 
23
            if(azimut>40) SlowLeft(); else SlowRight();
19
        last_cross=cros[n].id;
24
            korekce=1;
-
 
25
        };
20
        break;
26
        break;
21
    case 4:
27
    case 4:
-
 
28
        azimut=read_azimut_mag();
-
 
29
        if ((azimut>0)&&(azimut<100))
22
//        TL(194);
30
        {
23
        if ((lus>100)&&(lus<300)) SlowLeft();
31
            if(azimut>45) SlowLeft(); else SlowRight();
24
            korekce=1;
32
            korekce=1;
25
//        last_cross=cros[n].id;
33
        };
26
        break;
34
        break;
27
    case 5:
35
    case 5:
28
        TL(176);
36
        TL(176);
29
        last_cross=cros[n].id;
37
        last_cross=cros[n].id;
30
        break;
38
        break;