Subversion Repositories FlightCtrl

Rev

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

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