Subversion Repositories NaviCtrl

Rev

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

Rev 540 Rev 548
Line 276... Line 276...
276
                newErrorCode = 19;
276
                newErrorCode = 19;
277
        }
277
        }
278
        else if(CheckDelay(UBX_Timeout) && Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)
278
        else if(CheckDelay(UBX_Timeout) && Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)
279
        {
279
        {
280
                LED_RED_ON;
280
                LED_RED_ON;
281
//      if(!(Parameter.GlobalConfig & FC_CFG_GPS_AKTIV)) sprintf(ErrorMSG,"GPS disconnected ");
-
 
282
//              else
-
 
283
                {
-
 
284
                        sprintf(ErrorMSG,"no GPS communication");
281
                sprintf(ErrorMSG,"no GPS communication");
285
                        UART_VersionInfo.HardwareError[0] |= NC_ERROR0_GPS_RX;
282
                UART_VersionInfo.HardwareError[0] |= NC_ERROR0_GPS_RX;
286
                        UART_VersionInfo.Flags &= ~NC_VERSION_FLAG_GPS_PRESENT;
283
                UART_VersionInfo.Flags &= ~NC_VERSION_FLAG_GPS_PRESENT;
287
                        newErrorCode = 5;
284
                newErrorCode = 5;
288
                }
-
 
289
                StopNavigation = 1;
285
                StopNavigation = 1;
-
 
286
//UBX_Setup();
290
//              UBX_Timeout = SetDelay(500);
287
//UBX_Timeout = SetDelay(500);
291
        }
288
        }
292
        else if(Compass_Heading < 0 && NCMAG_Present && !NCMAG_IsCalibrated)
289
        else if(Compass_Heading < 0 && NCMAG_Present && !NCMAG_IsCalibrated)
293
        {
290
        {
294
                LED_RED_ON;
291
                LED_RED_ON;
295
                sprintf(ErrorMSG,"compass not calibr.");
292
                sprintf(ErrorMSG,"compass not calibr.");
Line 563... Line 560...
563
        DebugOut.StatusRed = 0x00;
560
        DebugOut.StatusRed = 0x00;
564
        UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++");
561
        UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++");
Line 565... Line 562...
565
 
562
 
Line -... Line 563...
-
 
563
        Compass_Init();
566
        Compass_Init();
564
 
Line 567... Line -...
567
 
-
 
568
        GPS_Init();
565
        UBX_Setup(); // inits the GPS-Module via ubx
569
 
566
        GPS_Init();
570
 
567
 
571
#ifdef FOLLOW_ME
568
#ifdef FOLLOW_ME
572
        TransmitAlsoToFC = 1;
569
        TransmitAlsoToFC = 1;