Rev 519 | Rev 523 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 519 | Rev 520 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | 76 | ||
Line 77... | Line 77... | ||
77 | draw_variometer(21, top_line, naviData.Variometer); |
77 | draw_variometer(21, top_line, naviData.Variometer); |
78 | 78 | ||
79 | //note:lephisto:according to several sources it's /30 |
79 | //note:lephisto:according to several sources it's /30 |
80 | if (naviData.Altimeter > 300 || naviData.Altimeter < -300) { |
80 | if (naviData.Altimeter > 300 || naviData.Altimeter < -300) { |
- | 81 | // above 10m only write full meters |
|
81 | // above 10m only write full meters |
82 | write_ndigit_number_s(23, top_line, naviData.Altimeter / 30, 4, 0); // BARO |
82 | write_ndigit_number_s(23, top_line, naviData.Altimeter / 30, 4, 0); |
83 | //write_ndigit_number_s(23, top_line, (int16_t) (naviData.CurrentPosition.Altitude / 1000), 4, 0); // GPS |
83 | } else { |
84 | } else { |
84 | // up to 10m write meters.dm |
85 | // up to 10m write meters.dm |
85 | //write_number_u_10th(21, top_line, naviData.Altimeter / 3); |
86 | write_ndigit_number_s_10th(23, top_line, naviData.Altimeter / 3, 3, 0); // BARO |
86 | write_ndigit_number_s_10th(23, top_line, naviData.Altimeter / 3, 3, 0); |
- | |
87 | } |
- | |
88 | - | ||
89 | // GPS HIGHT |
- | |
90 | //write_ndigit_number_s(23, top_line-1, (int16_t) (naviData.CurrentPosition.Altitude / 1000), 4, 0); |
87 | //write_ndigit_number_s_10th(23, top_line, (int16_t) (naviData.CurrentPosition.Altitude / 1000), 3, 0); // GPS |
91 | 88 | } |
|
Line 92... | Line 89... | ||
92 | // seccond line |
89 | |
93 | draw_compass(11, top_line + 1, naviData.CompassHeading); |
90 | // seccond line |