/branches/v0.60_MicroMag3_Nick666/timer0.c |
---|
43,24 → 43,8 |
if(EE_Parameter.GlobalConfig & CFG_KOMPASS_AKTIV) MM3_timer0(); |
/* |
if(PINC & 0x10) |
{ |
cntKompass++; |
} |
else |
{ |
if((cntKompass) && (cntKompass < 4000)) |
{ |
KompassValue = cntKompass; |
} |
// if(cntKompass < 10) cntKompass = 10; |
// KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L; |
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
cntKompass = 0; |
} |
//KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180; |
}*/ |
} |