Subversion Repositories FlightCtrl

Rev

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

Rev 395 Rev 693
Line 70... Line 70...
70
   }
70
   }
71
  else
71
  else
72
   {
72
   {
73
    if((cntKompass) && (cntKompass < 4000))
73
    if((cntKompass) && (cntKompass < 4000))
74
    {
74
    {
75
     KompassValue = cntKompass;
75
     cntKompass += cntKompass / 41;
-
 
76
     if(cntKompass > 10) KompassValue = cntKompass - 10; else KompassValue = 0;
76
    }
77
    }
77
//     if(cntKompass < 10) cntKompass = 10;
78
//     if(cntKompass < 10) cntKompass = 10;
78
//     KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L;
79
//     KompassValue = (unsigned long)((unsigned long)(cntKompass-10)*720L + 1L) / 703L;
79
     KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
80
     KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
80
    cntKompass = 0;
81
    cntKompass = 0;