Subversion Repositories Projects

Rev

Rev 761 | Rev 766 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 761 Rev 762
Line 182... Line 182...
182
                if (COSD_FLAGS_CONFIG & COSD_FLAG_FEET) {
182
                if (COSD_FLAGS_CONFIG & COSD_FLAG_FEET) {
183
                    write_ndigit_number_s(16, line - 2, max_Altimeter * 32 / 10, 4, 0);
183
                    write_ndigit_number_s(16, line - 2, max_Altimeter * 32 / 10, 4, 0);
184
                    write_char_xy(20, line - 2, 0x7E); // small feet ft
184
                    write_char_xy(20, line - 2, 0x7E); // small feet ft
185
                    write_ndigit_number_u(17, line - 1, (uint16_t)(((uint32_t)max_GroundSpeed * (uint32_t)279) / (uint32_t)12500), 3, 0);
185
                    write_ndigit_number_u(17, line - 1, (uint16_t)(((uint32_t)max_GroundSpeed * (uint32_t)279) / (uint32_t)12500), 3, 0);
186
                    write_char_xy(20, line - 1, 0x7D); // mp/h
186
                    write_char_xy(20, line - 1, 0x7D); // mp/h
187
                    write_ndigit_number_u(17, line - 0, max_Distance / 10 * 32 / 10, 3, 0);
187
                    write_ndigit_number_u(16, line - 0, max_Distance / 10 * 32 / 10, 4, 0);
188
                    write_char_xy(20, line - 0, 0x7E); // small feet ft
188
                    write_char_xy(20, line - 0, 0x7E); // small feet ft
189
                } else {
189
                } else {
190
                    write_ndigit_number_s(16, line - 2, max_Altimeter, 4, 0);
190
                    write_ndigit_number_s(16, line - 2, max_Altimeter, 4, 0);
191
                    write_char_xy(20, line - 2, 204); // small meters m
191
                    write_char_xy(20, line - 2, 204); // small meters m
192
                    write_ndigit_number_u(17, line - 1, (uint16_t)(((uint32_t)max_GroundSpeed * (uint32_t)9) / (uint32_t)250), 3, 0);
192
                    write_ndigit_number_u(17, line - 1, (uint16_t)(((uint32_t)max_GroundSpeed * (uint32_t)9) / (uint32_t)250), 3, 0);
193
                    write_char_xy(20, line - 1, 203); // km/h
193
                    write_char_xy(20, line - 1, 203); // km/h
194
                    write_ndigit_number_u(17, line - 0, max_Distance / 10, 3, 0);
194
                    write_ndigit_number_u(16, line - 0, max_Distance / 10, 4, 0);
195
                    write_char_xy(20, line - 0, 204); // small meters m
195
                    write_char_xy(20, line - 0, 204); // small meters m
196
                }
196
                }
Line 197... Line 197...
197
 
197
 
198
                write_ascii_string_pgm(1, ++line, (const char *)(pgm_read_word(&(stats_item_pointers[3])))); // min voltage
198
                write_ascii_string_pgm(1, ++line, (const char *)(pgm_read_word(&(stats_item_pointers[3])))); // min voltage