Rev 2466 | Rev 2482 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2466 | Rev 2476 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | pVoidFnct_pVoidFnctChar_const_fmt _printf_P; |
60 | pVoidFnct_pVoidFnctChar_const_fmt _printf_P; |
61 | unsigned char FoundMotors = 0; |
61 | unsigned char FoundMotors = 0; |
62 | unsigned char JetiBeep = 0; // to allow any Morse-Beeping of the Jeti-Box |
62 | unsigned char JetiBeep = 0; // to allow any Morse-Beeping of the Jeti-Box |
63 | unsigned char ActiveParamSet = 3; |
63 | unsigned char ActiveParamSet = 3; |
64 | unsigned char LipoCells = 4; |
64 | unsigned char LipoCells = 4; |
65 | unsigned char RedundanceBlOperation = 0; |
- | |
Line 66... | Line 65... | ||
66 | 65 | ||
67 | void PrintLine(void) |
66 | void PrintLine(void) |
68 | { |
67 | { |
69 | printf("\n\r==================================="); |
68 | printf("\n\r==================================="); |
Line 323... | Line 322... | ||
323 | #ifdef REDUNDANT_FC_SLAVE |
322 | #ifdef REDUNDANT_FC_SLAVE |
324 | timer = SetDelay(2500); |
323 | timer = SetDelay(2500); |
325 | while(!CheckDelay(timer)); |
324 | while(!CheckDelay(timer)); |
326 | printf("\n\rStart\n\r"); |
325 | printf("\n\rStart\n\r"); |
327 | #endif |
326 | #endif |
- | 327 | ||
328 | while(1) |
328 | while(1) |
329 | { |
329 | { |
330 | EEAR = EE_DUMMY; // Set the EEPROM Address pointer to an unused space |
330 | EEAR = EE_DUMMY; // Set the EEPROM Address pointer to an unused space |
331 | if(ReceiverUpdateModeActive) while (1) PORTC &= ~(1<<7); // Beeper off |
331 | if(ReceiverUpdateModeActive) while (1) PORTC &= ~(1<<7); // Beeper off |
332 | if(UpdateMotor && AdReady) // ReglerIntervall |
332 | if(UpdateMotor && AdReady) // ReglerIntervall |
Line 477... | Line 477... | ||
477 | // +++++++++++++++++++++++++++++++++ |
477 | // +++++++++++++++++++++++++++++++++ |
478 | // Sekundentakt |
478 | // Sekundentakt |
479 | if(++second == 49) |
479 | if(++second == 49) |
480 | { |
480 | { |
481 | second = 0; |
481 | second = 0; |
482 | /* |
- | |
483 | DebugOut.Analog[16] -= DebugOut.Analog[16] / 128; |
- | |
484 | DebugOut.Analog[17] -= DebugOut.Analog[17] / 128; |
- | |
485 | - | ||
486 | if(DebugOut.Analog[16] > 3000) {AdNeutralNick++; DebugOut.Analog[16] = 0;} |
- | |
487 | else |
- | |
488 | if(DebugOut.Analog[16] < -3000) {AdNeutralNick--; DebugOut.Analog[16] = 0;}; |
- | |
489 | - | ||
490 | if(DebugOut.Analog[17] > 3000) {AdNeutralRoll++; DebugOut.Analog[17] = 0;} |
- | |
491 | else |
- | |
492 | if(DebugOut.Analog[17] < -3000) {AdNeutralRoll--; DebugOut.Analog[17] = 0;}; |
- | |
493 | */ |
- | |
494 | - | ||
495 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
482 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
496 | if(ShowSettingNameTime) ShowSettingNameTime--; |
483 | if(ShowSettingNameTime) ShowSettingNameTime--; |
497 | #endif |
484 | #endif |
498 | if(FC_StatusFlags & FC_STATUS_FLY) FlugSekunden++; |
485 | if(FC_StatusFlags & FC_STATUS_FLY) FlugSekunden++; |
499 | else timer2 = 1450; // 0,5 Minuten aufrunden |
486 | else timer2 = 1450; // 0,5 Minuten aufrunden |