Subversion Repositories FlightCtrl

Rev

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

Rev 1509 Rev 1536
Line 261... Line 261...
261
                break;
261
                break;
262
        }
262
        }
Line 263... Line 263...
263
 
263
 
264
  if(SPI_RxDataValid)
264
  if(SPI_RxDataValid)
-
 
265
  {
265
  {
266
   NaviDataOkay = 250;
266
   if(abs(FromNaviCtrl.GPS_Nick) < 512 && abs(FromNaviCtrl.GPS_Roll) < 512 && (EE_Parameter.GlobalConfig & CFG_GPS_AKTIV))
267
   if(abs(FromNaviCtrl.GPS_Nick) < 512 && abs(FromNaviCtrl.GPS_Roll) < 512 && (EE_Parameter.GlobalConfig & CFG_GPS_AKTIV))
267
   {
268
   {
268
    GPS_Nick = FromNaviCtrl.GPS_Nick;
269
    GPS_Nick = FromNaviCtrl.GPS_Nick;
269
    GPS_Roll = FromNaviCtrl.GPS_Roll;
-
 
270
        NaviDataOkay = 250;
270
    GPS_Roll = FromNaviCtrl.GPS_Roll;
271
   }
271
   }
272
    if(FromNaviCtrl.CompassValue <= 360)   KompassValue = FromNaviCtrl.CompassValue;
272
    if(FromNaviCtrl.CompassValue <= 360)   KompassValue = FromNaviCtrl.CompassValue;
Line 273... Line 273...
273
    KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;
273
    KompassRichtung = ((540 + KompassValue - KompassStartwert) % 360) - 180;