Subversion Repositories NaviCtrl

Rev

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

Rev 706 Rev 715
Line 431... Line 431...
431
                newErrorCode = 37;
431
                newErrorCode = 37;
432
        }
432
        }
433
        else if(CanbusTimeOut == 1)
433
        else if(CanbusTimeOut == 1)
434
        {                                                                
434
        {                                                                
435
                sprintf(ErrorMSG,"ERR: Canbus");
435
                sprintf(ErrorMSG,"ERR: Canbus");
-
 
436
CanbusInit();
436
                newErrorCode = 39;
437
                newErrorCode = 39;
437
        }
438
        }
438
        else
439
        else
439
        if(FC.Error[1] & FC_ERROR1_ACC_NOT_CAL)
440
        if(FC.Error[1] & FC_ERROR1_ACC_NOT_CAL)
440
        {
441
        {
Line 668... Line 669...
668
        }
669
        }
669
#endif
670
#endif
670
if(IamMaster == SLAVE)  UART1_PutString(" SLAVE\r\n");
671
if(IamMaster == SLAVE)  UART1_PutString(" SLAVE\r\n");
671
if(IamMaster == MASTER) UART1_PutString(" MASTER\r\n");
672
if(IamMaster == MASTER) UART1_PutString(" MASTER\r\n");
Line 672... Line 673...
672
 
673
 
673
        UBX_Setup(); // inits the GPS-Module via ubx
674
        if(UBX_Setup() == 0) UBX_Setup(); // inits the GPS-Module via ubx -> try twice
674
        GPS_Init();
675
        GPS_Init();
675
        // ---------- Prepare the isr driven
676
        // ---------- Prepare the isr driven
676
        // set to absolute lowest priority
677
        // set to absolute lowest priority
677
    VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW);
678
    VIC_Config(EXTIT3_ITLine, VIC_IRQ, PRIORITY_SW);