Subversion Repositories FlightCtrl

Rev

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

Rev 1916 Rev 1941
Line 80... Line 80...
80
   {
80
   {
81
    if((cntKompass) && (cntKompass < 362))
81
    if((cntKompass) && (cntKompass < 362))
82
    {
82
    {
83
     cntKompass += cntKompass / 41;
83
     cntKompass += cntKompass / 41;
84
     if(cntKompass > 10) KompassValue = cntKompass - 10; else KompassValue = 0;
84
     if(cntKompass > 10) KompassValue = cntKompass - 10; else KompassValue = 0;
85
     KompassRichtung = ((540 + KompassValue - KompassSollWert) % 360) - 180;
85
//     KompassRichtung = ((540 + KompassValue - KompassSollWert) % 360) - 180;
86
    }
86
    }
87
    cntKompass = 0;
87
    cntKompass = 0;
88
   }
88
   }
89
 }
89
 }
90
}
90
}