Subversion Repositories FlightCtrl

Rev

Rev 1403 | Rev 1469 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1403 Rev 1424
Line 1... Line 1...
1
#include "main.h"
1
#include "main.h"
2
#include "spectrum.h"
-
 
-
 
2
 
Line 3... Line 3...
3
 
3
 
4
volatile unsigned int CountMilliseconds = 0;
4
volatile unsigned int CountMilliseconds = 0;
5
volatile static unsigned int tim_main;
5
volatile static unsigned int tim_main;
6
volatile unsigned char UpdateMotor = 0;
6
volatile unsigned char UpdateMotor = 0;
Line 85... Line 85...
85
//     KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L;
85
//     KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L;
86
     KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
86
     KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
87
    cntKompass = 0;
87
    cntKompass = 0;
88
   }
88
   }
89
 }
89
 }
90
 
-
 
91
}
90
}
Line 92... Line 91...
92
 
91
 
93
 
-
 
94
// -----------------------------------------------------------------------
92
 
95
 
93
// -----------------------------------------------------------------------
96
unsigned int SetDelay (unsigned int t)
94
unsigned int SetDelay (unsigned int t)
97
{
95
{
98
//  TIMSK0 &= ~_BV(TOIE0);
96
//  TIMSK0 &= ~_BV(TOIE0);