Subversion Repositories svnkaklik

Rev

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

Rev 248 Rev 249
Line 35... Line 35...
35
         brzda();
35
         brzda();
36
         goto cihla; // Znovu zacni cihlu objizdet
36
         goto cihla; // Znovu zacni cihlu objizdet
37
      };
37
      };
38
 
38
 
39
      set_pwm1_duty(0);
39
      set_pwm1_duty(0);
40
      set_pwm2_duty(220);
40
      set_pwm2_duty(220);     // !!! mozna prilis maly vykon pro rozjezd pro zatuhlou prevodovku
41
      output_high(MOT_L);     // leve kolo reverz
41
      output_high(MOT_L);     // leve kolo reverz
42
      output_low(MOT_R);      // prave kolo vpred
42
      output_low(MOT_R);      // prave kolo vpred
43
      if(get_timer1()>(odocounter+5))  // konec zatacky?
43
      if(get_timer1()>(odocounter+5))  // konec zatacky?
44
      {
44
      {
45
         disp(0x66);
45
         disp(0x66);
Line 63... Line 63...
63
         SaveLog(log-1);      // Zapis Black Boxu do EEPROM
63
         SaveLog(log-1);      // Zapis Black Boxu do EEPROM
64
         set_pwm1_duty(160);  // vpred
64
         set_pwm1_duty(160);  // vpred
65
         set_pwm2_duty(160);
65
         set_pwm2_duty(160);
66
         output_low(MOT_L);
66
         output_low(MOT_L);
67
         output_low(MOT_R);
67
         output_low(MOT_R);
-
 
68
         cas=CASMIN;
68
      };
69
      };
69
 
70
 
70
      delta_bearing=bearing-bearing_offset;
71
      delta_bearing=bearing-bearing_offset;
71
      visualisation=(delta_bearing & 0xF0) | (visualisation & 0x0F);
72
      visualisation=(delta_bearing & 0xF0) | (visualisation & 0x0F);
72
      if(IRRX)  // hrozi celni srazka s cihlou v prubehu objizdeni
73
      if(IRRX)  // hrozi celni srazka s cihlou v prubehu objizdeni