Subversion Repositories FlightCtrl

Compare Revisions

Ignore whitespace Rev 153 → Rev 155

/branches/salvo_gps/timer0.c
71,7 → 71,13
}
// if(cntKompass < 10) cntKompass = 10;
// KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L;
//Salvo 12.9.2007 Ersatzkompass als Basis nehmen, nicht den magnetkompass
KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
// int i;
// i = GyroKomp_Int/GYROKOMP_INC_GRAD_DEFAULT;
// if (i < 180) KompassRichtung = ((540 + i - KompassStartwert) % 360) - 180;
// else KompassRichtung = ((540 + (i-360) - KompassStartwert) % 360) - 180;
// Salvo End
Kompass_Neuer_Wert = 1;
cntKompass = 0;
}