Rev 389 | Rev 401 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 389 | Rev 400 | ||
---|---|---|---|
Line 506... | Line 506... | ||
506 | if (COSD_FLAGS & COSD_FLAG_STATS) { |
506 | if (COSD_FLAGS & COSD_FLAG_STATS) { |
507 | write_ascii_string_pgm(2, 5, stats_item_pointers[0]); // max Altitude |
507 | write_ascii_string_pgm(2, 5, stats_item_pointers[0]); // max Altitude |
508 | write_ndigit_number_s(18, 5, max_Altimeter / 30, 1000, 0); |
508 | write_ndigit_number_s(18, 5, max_Altimeter / 30, 1000, 0); |
509 | write_char_xy(22, 5, 204); // small meters m |
509 | write_char_xy(22, 5, 204); // small meters m |
510 | write_ascii_string_pgm(2, 6, stats_item_pointers[1]); // max Speed |
510 | write_ascii_string_pgm(2, 6, stats_item_pointers[1]); // max Speed |
511 | write_ndigit_number_u(19, 6, (uint16_t) (((uint32_t) max_GroundSpeed * 36) / 1000), 100, 0); |
511 | write_ndigit_number_u(19, 6, (uint16_t) (((uint32_t) naviData.GroundSpeed * (uint32_t)9) / (uint32_t)250), 100, 0); |
512 | write_char_xy(22, 6, 203); // km/h |
512 | write_char_xy(22, 6, 203); // km/h |
513 | write_ascii_string_pgm(2, 7, stats_item_pointers[2]); // max Distance |
513 | write_ascii_string_pgm(2, 7, stats_item_pointers[2]); // max Distance |
514 | write_ndigit_number_u(19, 7, max_Distance / 100, 100, 0); |
514 | write_ndigit_number_u(19, 7, max_Distance / 100, 100, 0); |
515 | write_char_xy(22, 7, 204); // small meters m |
515 | write_char_xy(22, 7, 204); // small meters m |
516 | write_ascii_string_pgm(2, 8, stats_item_pointers[3]); // min voltage |
516 | write_ascii_string_pgm(2, 8, stats_item_pointers[3]); // min voltage |