Rev 386 | Rev 388 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 386 | Rev 387 | ||
---|---|---|---|
Line 672... | Line 672... | ||
672 | 672 | ||
673 | // and disable debug... |
673 | // and disable debug... |
Line 674... | Line 674... | ||
674 | usart1_request_mk_data(0, 'd', 0); |
674 | usart1_request_mk_data(0, 'd', 0); |
675 | 675 | ||
Line 676... | Line 676... | ||
676 | // disable TXD-pin |
676 | // disable TXD-pin |
677 | usart1_DisableTXD(); |
677 | //usart1_DisableTXD(); |
678 | 678 | ||
679 | // stats for after flight |
679 | // stats for after flight |
Line 792... | Line 792... | ||
792 | write_ascii_string_pgm(2, 7, stats_item_pointers[2]); // max Distance |
792 | write_ascii_string_pgm(2, 7, stats_item_pointers[2]); // max Distance |
793 | write_ndigit_number_u(19, 7, max_Distance / 100, 100, 0); |
793 | write_ndigit_number_u(19, 7, max_Distance / 100, 100, 0); |
794 | write_char_xy(22, 7, 204); // small meters m |
794 | write_char_xy(22, 7, 204); // small meters m |
795 | write_ascii_string_pgm(2, 8, stats_item_pointers[3]); // min voltage |
795 | write_ascii_string_pgm(2, 8, stats_item_pointers[3]); // min voltage |
796 | write_ndigit_number_u_10th(18, 8, min_UBat, 100, 0); |
796 | write_ndigit_number_u_10th(18, 8, min_UBat, 100, 0); |
797 | write_ascii_string(22, 8, "V"); // voltage |
797 | write_char_xy(22, 8, 0x9E); // small v |
798 | write_ascii_string_pgm(2, 9, stats_item_pointers[4]); // max time |
798 | write_ascii_string_pgm(2, 9, stats_item_pointers[4]); // max time |
799 | write_time(16, 9, max_FlyingTime); |
799 | write_time(16, 9, max_FlyingTime); |
800 | write_char_xy(22, 9, 210); // fly clock |
800 | write_char_xy(22, 9, 210); // fly clock |
801 | } else if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { // if no stats there is space horizon |
801 | } else if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { // if no stats there is space horizon |
802 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
802 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
Line 852... | Line 852... | ||
852 | // handle keypress |
852 | // handle keypress |
853 | if (s1_pressed()) { |
853 | if (s1_pressed()) { |
854 | config_menu(); |
854 | config_menu(); |
855 | } |
855 | } |
856 | if (seconds_since_last_data > 2) { |
856 | if (seconds_since_last_data > 2) { |
- | 857 | /*if (COSD_FLAGS & COSD_FLAG_HUD) { |
|
- | 858 | write_ascii_string(2, 3, "ERROR: NO DATA for"); |
|
- | 859 | write_time(21, 3, seconds_since_last_data); |
|
- | 860 | }*/ |
|
857 | // request OSD Data from NC every 100ms |
861 | // request OSD Data from NC every 100ms |
858 | usart1_request_mk_data(1, 'o', 100); |
862 | usart1_request_mk_data(1, 'o', 100); |
- | 863 | _delay_ms(200); |
|
859 | seconds_since_last_data = 0; |
864 | //seconds_since_last_data = 0; |
860 | } |
865 | } |
861 | } |
866 | } |
862 | #endif |
867 | #endif |
863 | return 0; |
868 | return 0; |
864 | } |
869 | } |