Subversion Repositories FlightCtrl

Rev

Rev 863 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 863 Rev 876
Line 5... Line 5...
5
volatile unsigned char UpdateMotor = 0;
5
volatile unsigned char UpdateMotor = 0;
6
volatile unsigned int cntKompass = 0;
6
volatile unsigned int cntKompass = 0;
7
volatile unsigned int beeptime = 0;
7
volatile unsigned int beeptime = 0;
8
unsigned int BeepMuster = 0xffff;
8
unsigned int BeepMuster = 0xffff;
9
int ServoValue = 0;
9
int ServoValue = 0;
-
 
10
unsigned char ucBeeperActive=1;
Line 10... Line 11...
10
 
11
 
11
enum {
12
enum {
12
  STOP             = 0,
13
  STOP             = 0,
13
  CK               = 1,
14
  CK               = 1,
Line 38... Line 39...
38
     if(beeptime > 1)
39
     if(beeptime > 1)
39
        {
40
        {
40
        beeptime--;      
41
        beeptime--;      
41
        if(beeptime & BeepMuster)
42
        if(beeptime & BeepMuster)
42
         {
43
         {
43
          pieper_ein = 1;
44
          if(ucBeeperActive) pieper_ein = 1;
44
          EXT1OUT_INV_OFF;
45
          EXT1OUT_INV_OFF;
45
         }
46
         }
46
         else
47
         else
47
         {
48
         {
48
                pieper_ein = 0;
49
                if(ucBeeperActive) pieper_ein = 0;
49
                EXT1OUT_INV_ON;
50
                EXT1OUT_INV_ON;
50
         }
51
         }
51
        }
52
        }
52
     else
53
     else
53
      {
54
      {
54
        EXT1OUT_INV_ON;
55
        EXT1OUT_INV_ON;
55
       pieper_ein = 0;
56
       pieper_ein = 0;
-
 
57
       ucBeeperActive=1;
56
       BeepMuster = 0xffff;
58
       BeepMuster = 0xffff;
57
      }
59
      }
Line 58... Line 60...
58
 
60
 
Line 86... Line 88...
86
    cntKompass = 0;
88
    cntKompass = 0;
87
   }
89
   }
88
 }
90
 }
89
}
91
}
Line -... Line 92...
-
 
92
 
-
 
93
void setBeeperActive(unsigned char ucVal)
-
 
94
{
-
 
95
        ucBeeperActive=ucVal;
Line 90... Line 96...
90
 
96
}
91
 
97
 
92
void Timer_Init(void)
98
void Timer_Init(void)
93
{
99
{