Rev 2563 | Rev 2575 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2563 | Rev 2573 | ||
---|---|---|---|
Line 516... | Line 516... | ||
516 | // Sekundentakt |
516 | // Sekundentakt |
517 | if(++second == 49) |
517 | if(++second == 49) |
518 | { |
518 | { |
519 | second = 0; |
519 | second = 0; |
520 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
520 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
521 | /* |
521 | |
522 | // +++++++++++++++++++++++++++++++++++++++++++ |
522 | // +++++++++++++++++++++++++++++++++++++++++++ |
523 | // + Load/Store one single point |
523 | // + Load/Store one single point |
524 | // +++++++++++++++++++++++++++++++++++++++++++ |
524 | // +++++++++++++++++++++++++++++++++++++++++++ |
525 | if(Parameter_UserParam3 > 180) // Up |
525 | if(EE_Parameter.SingleWpControlChannel) |
- | 526 | { |
|
- | 527 | if(PPM_in[EE_Parameter.SingleWpControlChannel] > 50) // Switch Up -> load |
|
526 | { |
528 | { |
527 | if(switch_hyterese == 1 || switch_hyterese == 3) |
529 | if(switch_hyterese == 1 || switch_hyterese == 3) |
528 | { |
530 | { |
529 | ToNC_Load_SingePoint = 1; |
531 | ToNC_Load_SingePoint = 1; |
530 | switch_hyterese = 2; |
532 | switch_hyterese = 2; |
- | 533 | SpeakHoTT = SPEAK_NEXT_WP; |
|
- | 534 | Show_Load = 5; |
|
531 | } |
535 | } |
532 | } |
536 | } |
533 | else |
537 | else |
534 | if(Parameter_UserParam3 < 80) // Down |
538 | if(PPM_in[EE_Parameter.SingleWpControlChannel] < -50) // Switch Down -> store |
535 | { |
539 | { |
536 | if(switch_hyterese == 1 || switch_hyterese == 2) |
540 | if(switch_hyterese == 1 || switch_hyterese == 2) |
537 | { |
541 | { |
538 | ToNC_Store_SingePoint = 1; |
542 | ToNC_Store_SingePoint = 1; |
539 | switch_hyterese = 3; |
543 | switch_hyterese = 3; |
- | 544 | SpeakHoTT = SPEAK_MIKROKOPTER; |
|
- | 545 | Show_Store = 5; |
|
540 | } |
546 | } |
541 | } |
547 | } |
542 | else // Middle |
548 | else // Middle |
543 | { |
549 | { |
544 | switch_hyterese = 1; |
550 | switch_hyterese = 1; |
545 | } |
551 | } |
- | 552 | } |
|
546 | // +++++++++++++++++++++++++++++++++++++++++++ |
553 | // +++++++++++++++++++++++++++++++++++++++++++ |
547 | */ |
554 | |
548 | #endif |
555 | #endif |
Line 549... | Line 556... | ||
549 | 556 | ||
550 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
557 | #if (defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__)) |
- | 558 | if(ShowSettingNameTime) ShowSettingNameTime--; |
|
- | 559 | if(Show_Load) Show_Load--; |
|
551 | if(ShowSettingNameTime) ShowSettingNameTime--; |
560 | if(Show_Store) Show_Store--; |
552 | #endif |
561 | #endif |
553 | if(NC_To_FC_Flags & NC_TO_FC_FAILSAFE_LANDING) ServoFailsafeActive = SERVO_FS_TIME; |
562 | if(NC_To_FC_Flags & NC_TO_FC_FAILSAFE_LANDING) ServoFailsafeActive = SERVO_FS_TIME; |
554 | else |
563 | else |