Rev 757 | Rev 761 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 757 | Rev 758 | ||
---|---|---|---|
Line 150... | Line 150... | ||
150 | } else if (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT) { |
150 | } else if (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT) { |
151 | wasted_ampere_offset = naviData.UsedCapacity; |
151 | wasted_ampere_offset = naviData.UsedCapacity; |
152 | } |
152 | } |
153 | // update flags to paint display again if needed |
153 | // update flags to paint display again if needed |
154 | COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN; |
154 | COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN; |
155 | } |
155 | } |
- | 156 | if (COSD_FLAGS_MODES & COSD_FLAG_ARTHORIZON) { // horizon |
|
- | 157 | uint8_t horizon_bottom = bottom_line - 1; |
|
- | 158 | if ((COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) || (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT)) { |
|
- | 159 | horizon_bottom--; |
|
156 | if (COSD_FLAGS_MODES & COSD_FLAG_ARTHORIZON) { |
160 | } |
157 | if (COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) { |
161 | if (COSD_FLAGS_MODES & COSD_FLAG_AGGRHORIZON) { |
158 | draw_artificial_horizon(top_line + 2, bottom_line - 2, naviData.AngleNick, naviData.AngleRoll); |
162 | draw_agressiva_artificial_horizon(top_line + 2, horizon_bottom, naviData.AngleNick, naviData.AngleRoll); |
159 | } else { |
163 | } else { |
160 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
164 | draw_artificial_horizon(top_line + 2, horizon_bottom, naviData.AngleNick, naviData.AngleRoll); |
161 | } |
165 | } |
162 | } |
166 | } |
163 | // motors are on, assume we were/are flying |
167 | // motors are on, assume we were/are flying |
164 | COSD_FLAGS_RUNTIME |= COSD_WASFLYING; |
168 | COSD_FLAGS_RUNTIME |= COSD_WASFLYING; |
165 | } else { |
169 | } else { |