51,12 → 51,12 |
write_char_att_xy(7 + x, top_line, 0); |
} |
|
if (debugData.Analog[5] > 300 || debugData.Analog[5] < -300) { |
if (debugData.Analog[5] > 200 || debugData.Analog[5] < -200) { |
// above 10m only write full meters |
write_ndigit_number_s(23, top_line, debugData.Analog[5] / 30, 4, 0); |
write_ndigit_number_s(23, top_line, debugData.Analog[5] / 20, 4, 0); |
} else { |
// up to 10m write meters.dm |
write_ndigit_number_s_10th(23, top_line, debugData.Analog[5] / 3, 3, 0); |
write_ndigit_number_s_10th(23, top_line, debugData.Analog[5] / 2, 3, 0); |
} |
if (debugData.Analog[5] > max_Altimeter) max_Altimeter = debugData.Analog[5]; |
|