Rev 1406 | Rev 1417 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1406 | Rev 1415 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | 12 | ||
13 | #define FC_ADDRESS 1 |
13 | #define FC_ADDRESS 1 |
14 | #define NC_ADDRESS 2 |
14 | #define NC_ADDRESS 2 |
Line -... | Line 15... | ||
- | 15 | #define MK3MAG_ADDRESS 3 |
|
- | 16 | ||
15 | #define MK3MAG_ADDRESS 3 |
17 | #define ABO_TIMEOUT 4000 // disable abo after 4 seconds |
16 | 18 | ||
17 | unsigned char GetExternalControl = 0,DebugDisplayAnforderung1 = 0, DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0, GetPPMChannelAnforderung = 0; |
19 | unsigned char GetExternalControl = 0,DebugDisplayAnforderung1 = 0, DebugDisplayAnforderung = 0,DebugDataAnforderung = 0,GetVersionAnforderung = 0, GetPPMChannelAnforderung = 0; |
18 | unsigned char DisplayLine = 0; |
20 | unsigned char DisplayLine = 0; |
19 | unsigned volatile char SioTmp = 0; |
21 | unsigned volatile char SioTmp = 0; |
Line 39... | Line 41... | ||
39 | struct str_VersionInfo VersionInfo; |
41 | struct str_VersionInfo VersionInfo; |
40 | struct str_WinkelOut WinkelOut; |
42 | struct str_WinkelOut WinkelOut; |
41 | struct str_Data3D Data3D; |
43 | struct str_Data3D Data3D; |
Line 42... | Line 44... | ||
42 | 44 | ||
43 | int Display_Timer, Debug_Timer,Kompass_Timer,Timer3D; |
45 | int Display_Timer, Debug_Timer,Kompass_Timer,Timer3D; |
- | 46 | unsigned int DebugDataIntervall = 0, Intervall3D = 0, Display_Interval = 0; |
|
Line 44... | Line 47... | ||
44 | unsigned int DebugDataIntervall = 200, Intervall3D = 0, Display_Interval = 0; |
47 | unsigned int AboTimeOut = 0; |
45 | 48 | ||
46 | const unsigned char ANALOG_TEXT[32][16] = |
49 | const unsigned char ANALOG_TEXT[32][16] = |
47 | { |
50 | { |
Line 418... | Line 421... | ||
418 | Intervall3D = pRxData[0] * 10; |
421 | Intervall3D = pRxData[0] * 10; |
419 | break; |
422 | break; |
420 | case 'd': // Poll the debug data |
423 | case 'd': // Poll the debug data |
421 | DebugDataIntervall = (unsigned int)pRxData[0] * 10; |
424 | DebugDataIntervall = (unsigned int)pRxData[0] * 10; |
422 | if(DebugDataIntervall > 0) DebugDataAnforderung = 1; |
425 | if(DebugDataIntervall > 0) DebugDataAnforderung = 1; |
- | 426 | AboTimeOut = SetDelay(ABO_TIMEOUT); |
|
423 | break; |
427 | break; |
Line 424... | Line 428... | ||
424 | 428 | ||
425 | case 'h':// x-1 Displayzeilen |
429 | case 'h':// x-1 Displayzeilen |
426 | PcZugriff = 255; |
430 | PcZugriff = 255; |
Line 432... | Line 436... | ||
432 | else // new format |
436 | else // new format |
433 | { |
437 | { |
434 | RemoteKeys |= ~pRxData[0]; |
438 | RemoteKeys |= ~pRxData[0]; |
435 | Display_Interval = (unsigned int)pRxData[1] * 10; |
439 | Display_Interval = (unsigned int)pRxData[1] * 10; |
436 | DisplayLine = 4; |
440 | DisplayLine = 4; |
- | 441 | AboTimeOut = SetDelay(ABO_TIMEOUT); |
|
437 | } |
442 | } |
438 | DebugDisplayAnforderung = 1; |
443 | DebugDisplayAnforderung = 1; |
439 | break; |
444 | break; |
Line 440... | Line 445... | ||
440 | 445 | ||
Line 516... | Line 521... | ||
516 | } |
521 | } |
Line 517... | Line 522... | ||
517 | 522 | ||
518 | //--------------------------------------------------------------------------------------------- |
523 | //--------------------------------------------------------------------------------------------- |
519 | void DatenUebertragung(void) |
524 | void DatenUebertragung(void) |
520 | { |
525 | { |
- | 526 | if(!UebertragungAbgeschlossen) return; |
|
- | 527 | ||
- | 528 | if(CheckDelay(AboTimeOut)) |
|
- | 529 | { |
|
- | 530 | Display_Interval = 0; |
|
- | 531 | DebugDataIntervall = 0; |
|
Line 521... | Line 532... | ||
521 | if(!UebertragungAbgeschlossen) return; |
532 | } |
522 | 533 | ||
523 | if(((Display_Interval>0 && CheckDelay(Display_Timer)) || DebugDisplayAnforderung) && UebertragungAbgeschlossen) |
534 | if(((Display_Interval>0 && CheckDelay(Display_Timer)) || DebugDisplayAnforderung) && UebertragungAbgeschlossen) |
524 | { |
535 | { |