Subversion Repositories FlightCtrl

Rev

Rev 420 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 420 Rev 446
Line 25... Line 25...
25
unsigned char MeineSlaveAdresse;
25
unsigned char MeineSlaveAdresse;
26
struct str_DebugOut    DebugOut;
26
struct str_DebugOut    DebugOut;
27
struct str_Debug       DebugIn;
27
struct str_Debug       DebugIn;
28
struct str_VersionInfo VersionInfo;
28
struct str_VersionInfo VersionInfo;
29
int Debug_Timer;
29
int Debug_Timer;
-
 
30
//Salvo 26.10.2007
-
 
31
int dataset_cnt=0; //Zahelt die uebertragenen Debugdaten
30
 
32
//Salvo End
31
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
32
//++ Sende-Part der Datenübertragung
34
//++ Sende-Part der Datenübertragung
33
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
35
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34
SIGNAL(INT_VEC_TX)
36
SIGNAL(INT_VEC_TX)
35
{
37
{
Line 58... Line 60...
58
 static unsigned char crc1,crc2,buf_ptr;
60
 static unsigned char crc1,crc2,buf_ptr;
59
 static unsigned char UartState = 0;
61
 static unsigned char UartState = 0;
60
 unsigned char CrcOkay = 0;
62
 unsigned char CrcOkay = 0;
Line 61... Line 63...
61
 
63
 
-
 
64
 SioTmp = UDR;
-
 
65
 //Salvo 11.9.2007 GPS Daten holen
-
 
66
 Get_Ublox_Msg(SioTmp); // Daten vom GPS Modul holen
62
 SioTmp = UDR;
67
 // Salvo End
63
 if(buf_ptr >= MAX_EMPFANGS_BUFF)    UartState = 0;
68
 if(buf_ptr >= MAX_EMPFANGS_BUFF)    UartState = 0;
64
 if(SioTmp == '\r' && UartState == 2)
69
 if(SioTmp == '\r' && UartState == 2)
65
  {
70
  {
66
   UartState = 0;
71
   UartState = 0;
Line 309... Line 314...
309
 
314
 
310
    if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen)  
315
    if((CheckDelay(Debug_Timer) || DebugDataAnforderung) && UebertragungAbgeschlossen)  
311
         {
316
         {
312
          SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut));
317
          SendOutData('D',MeineSlaveAdresse,(unsigned char *) &DebugOut,sizeof(DebugOut));
-
 
318
          DebugDataAnforderung = 0;
-
 
319
                  //Salvo 26.10.2007  Counter fuer Erkennung von fehlenden Daten per Bluetoothuebertragung
-
 
320
                  dataset_cnt++;
313
          DebugDataAnforderung = 0;
321
                  // Salvo End
314
          Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL);  
322
          Debug_Timer = SetDelay(MIN_DEBUG_INTERVALL);  
Line 315... Line 323...
315
         }
323
         }
316
 
324