Subversion Repositories FlightCtrl

Rev

Rev 693 | Rev 849 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 693 Rev 723
Line 3... Line 3...
3
volatile unsigned int CountMilliseconds = 0;
3
volatile unsigned int CountMilliseconds = 0;
4
volatile static unsigned int tim_main;
4
volatile static unsigned int tim_main;
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
volatile unsigned char SendSPI = 0;
-
 
9
 
8
unsigned int BeepMuster = 0xffff;
10
unsigned int BeepMuster = 0xffff;
9
int ServoValue = 0;
11
int ServoValue = 0;
Line 10... Line 12...
10
 
12
 
11
enum {
13
enum {
Line 23... Line 25...
23
SIGNAL (SIG_OVERFLOW0)    // 8kHz
25
SIGNAL (SIG_OVERFLOW0)    // 8kHz
24
{
26
{
25
    static unsigned char cnt_1ms = 1,cnt = 0;
27
    static unsigned char cnt_1ms = 1,cnt = 0;
26
    unsigned char pieper_ein = 0;
28
    unsigned char pieper_ein = 0;
27
//    TCNT0 -= 250;//TIMER_RELOAD_VALUE;
29
//    TCNT0 -= 250;//TIMER_RELOAD_VALUE;
28
 
-
 
-
 
30
   if(SendSPI) SendSPI--;
29
   if(!cnt--)
31
   if(!cnt--)
30
    {
32
    {
31
     cnt = 9;
33
     cnt = 9;
32
     cnt_1ms++;
34
     cnt_1ms++;
33
     cnt_1ms %= 2;
35
     cnt_1ms %= 2;