Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 438 → Rev 455

/branches/v0.60_MicroMag3_Nick666/timer0.c
4,7 → 4,6
volatile static unsigned int tim_main;
volatile unsigned char UpdateMotor = 0;
volatile unsigned int beeptime = 0;
volatile unsigned int cntKompass = 800;
int ServoValue = 0;
 
enum {
45,13 → 44,6
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV)
{
timer0_MM3(); // Kompass auslesen
 
if (!cntKompass--) // Aufruf mit 10 Hz
{
KompassValue = heading_MM3();
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
cntKompass = 980;
}
}
}