Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 437 → Rev 438

/branches/v0.60_MicroMag3_Nick666/timer0.c
48,9 → 48,7
 
if (!cntKompass--) // Aufruf mit 10 Hz
{
int heading;
heading = heading_MM3();
KompassValue = (KompassValue * 3 + heading) / 4; // Filtern
KompassValue = heading_MM3();
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
cntKompass = 980;
}