Rev 471 | Rev 489 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 471 | Rev 474 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | clear(); |
91 | clear(); |
92 | // update flags to paint display again if needed |
92 | // update flags to paint display again if needed |
93 | COSD_FLAGS2 &= ~COSD_ICONS_WRITTEN; |
93 | COSD_FLAGS2 &= ~COSD_ICONS_WRITTEN; |
94 | } |
94 | } |
95 | if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { |
95 | if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { |
- | 96 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
|
- | 97 | draw_artificial_horizon(top_line + 2, bottom_line - 2, naviData.AngleNick, naviData.AngleRoll); |
|
- | 98 | } else { |
|
96 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
99 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
- | 100 | } |
|
97 | } |
101 | } |
98 | // motors are on, assume we were/are flying |
102 | // motors are on, assume we were/are flying |
99 | COSD_FLAGS2 |= COSD_WASFLYING; |
103 | COSD_FLAGS2 |= COSD_WASFLYING; |
100 | } else { |
104 | } else { |
101 | // stats |
105 | // stats |
Line 124... | Line 128... | ||
124 | write_ascii_string_pgm(2, ++line, stats_item_pointers[5]); // longitude |
128 | write_ascii_string_pgm(2, ++line, stats_item_pointers[5]); // longitude |
125 | write_gps_pos(15, line, naviData.CurrentPosition.Longitude); |
129 | write_gps_pos(15, line, naviData.CurrentPosition.Longitude); |
126 | write_ascii_string_pgm(2, ++line, stats_item_pointers[6]); // latitude |
130 | write_ascii_string_pgm(2, ++line, stats_item_pointers[6]); // latitude |
127 | write_gps_pos(15, line, naviData.CurrentPosition.Latitude); |
131 | write_gps_pos(15, line, naviData.CurrentPosition.Latitude); |
128 | } else if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { // if no stats there is space horizon |
132 | } else if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { // if no stats there is space horizon |
- | 133 | if (COSD_FLAGS2 & COSD_FLAG_STROMREC) { |
|
- | 134 | draw_artificial_horizon(top_line + 2, bottom_line - 2, naviData.AngleNick, naviData.AngleRoll); |
|
- | 135 | } else { |
|
129 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
136 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
- | 137 | } |
|
130 | } |
138 | } |
131 | } |
139 | } |
132 | if (COSD_FLAGS & COSD_FLAG_BIGVARIO) { |
140 | if (COSD_FLAGS & COSD_FLAG_BIGVARIO) { |
133 | draw_big_variometer(27, 8, naviData.Variometer); |
141 | draw_big_variometer(27, 8, naviData.Variometer); |
134 | } |
142 | } |