Subversion Repositories NaviCtrl

Rev

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

Rev 460 Rev 461
Line 262... Line 262...
262
        VIC_ITCmd(UART1_ITLine, ENABLE);
262
        VIC_ITCmd(UART1_ITLine, ENABLE);
Line 263... Line 263...
263
 
263
 
264
        // initialize the debug timer
264
        // initialize the debug timer
265
        UART1_DebugData_Timer = SetDelay(UART1_DebugData_Interval);
265
        UART1_DebugData_Timer = SetDelay(UART1_DebugData_Interval);
266
        UART1_NaviData_Timer = SetDelay(UART1_NaviData_Interval)+500;
266
        UART1_NaviData_Timer = SetDelay(UART1_NaviData_Interval)+500;
Line 267... Line 267...
267
        NMEA_Timer = SetDelay(9000);
267
        NMEA_Timer = SetDelay(14000);
268
 
268
 
269
        // Fill Version Info Structure
269
        // Fill Version Info Structure
270
        UART_VersionInfo.SWMajor = VERSION_MAJOR;
270
        UART_VersionInfo.SWMajor = VERSION_MAJOR;
Line 663... Line 663...
663
                        {
663
                        {
664
                                UART_SendData(UART2, tmp_tx); // put character to txd fifo
664
                                UART_SendData(UART2, tmp_tx); // put character to txd fifo
665
                        }
665
                        }
666
                        #endif
666
                        #endif
667
                        // if terminating character or end of txd buffer reached
667
                        // if terminating character or end of txd buffer reached
668
                        if((tmp_tx == '\r') || (UART1_tx_buffer.Position == UART1_tx_buffer.DataBytes))
668
                        if((tmp_tx == '\0') || (UART1_tx_buffer.Position == UART1_tx_buffer.DataBytes))
669
                        {
669
                        {
670
                                Buffer_Clear(&UART1_tx_buffer); // clear txd buffer
670
                                Buffer_Clear(&UART1_tx_buffer); // clear txd buffer
671
                                #ifdef FOLLOW_ME
671
                                #ifdef FOLLOW_ME
672
                                TransmitAlsoToFC = 0;
672
                                TransmitAlsoToFC = 0;
673
                                #endif
673
                                #endif
Line 676... Line 676...
676
                }
676
                }
677
        }
677
        }
678
}
678
}
Line 679... Line 679...
679
 
679
 
680
//$GPGGA,HHMMSS.ss,BBBB.BBBB,b,LLLLL.LLLL,l,Q,NN,D.D,H.H,h,G.G,g,A.A,RRRR*PP
-
 
681
//$GPGGA,090527.40,5317.15615,N,00729.08295,E,1,04,2.26,-2.6,M,45.5,M,,*
680
//$GPGGA,HHMMSS.ss,BBBB.BBBB,b,LLLLL.LLLL,l,Q,NN,D.D,H.H,h,G.G,g,A.A,RRRR*PP
682
//$GPGGA,191410,4735.5634,N,00739.3538,E,1,04,4.4,351.5,M,48.0,M,,*45
681
//$GPGGA,191410,4735.5634,N,00739.3538,E,1,04,4.4,351.5,M,48.0,M,,*45
683
//$GPGGA,092120.20,,,,,0,00,99.99,,,,,,*6C
682
//$GPGGA,092120.20,,,,,0,00,99.99,,,,,,*6C
684
void CreateNmeaGGA(void)
683
void CreateNmeaGGA(void)
685
{
684
{
Line 741... Line 740...
741
  }
740
  }
742
 for(x=1; x<i-1; x++)
741
 for(x=1; x<i-1; x++)
743
  {
742
  {
744
   crc ^= array[x];
743
   crc ^= array[x];
745
  }
744
  }
746
  i += sprintf(&array[i], "%02x\n\r",crc);
745
  i += sprintf(&array[i], "%02x%c%c",crc,0x0d,0x0a);
747
  AddSerialData(&UART1_tx_buffer,array,i);
746
  AddSerialData(&UART1_tx_buffer,array,i);
Line 748... Line 747...
748
 
747
 
749
// +++++++++++++++++++++++++++++++++++++++++++
748
// +++++++++++++++++++++++++++++++++++++++++++