Rev 326 | Rev 328 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 326 | Rev 327 | ||
---|---|---|---|
Line 807... | Line 807... | ||
807 | 807 | ||
808 | // clear screen |
808 | // clear screen |
Line 809... | Line 809... | ||
809 | clear(); |
809 | clear(); |
810 | 810 | ||
811 | char* menu[4] = {"Normal OSD ", |
811 | char* menu[4] = {"Normal OSD ", |
812 | "+ Art.Horizon ", |
812 | "Art.Horizon ", |
Line 813... | Line 813... | ||
813 | "NO OSD ", |
813 | "NO OSD ", |
814 | "NO OSD but WRN "}; |
814 | "NO OSD but WRN "}; |
Line 1448... | Line 1448... | ||
1448 | write_number_s(22, top_line + 1, naviData.HomePositionDeviation.Distance); |
1448 | write_number_s(22, top_line + 1, naviData.HomePositionDeviation.Distance); |
Line 1449... | Line 1449... | ||
1449 | 1449 | ||
1450 | // center |
1450 | // center |
1451 | if (naviData.MKFlags & FLAG_MOTOR_RUN) { // should be engines running |
1451 | if (naviData.MKFlags & FLAG_MOTOR_RUN) { // should be engines running |
1452 | if (!(old_MKFlags & FLAG_MOTOR_RUN)) { // motors just started, clear middle |
- | |
1453 | for (uint8_t x = 0; x < 30; x++) { |
1452 | if (!(old_MKFlags & FLAG_MOTOR_RUN)) { // motors just started, clear middle |
1454 | write_char_xy(x, 5, 0); |
1453 | clear(); |
1455 | write_char_xy(x, 7, 0); |
1454 | // update flags to paint display again if needed |
1456 | write_char_xy(x, 9, 0); |
- | |
1457 | } |
1455 | COSD_FLAGS &= ~COSD_ICONS_WRITTEN; |
1458 | } |
1456 | } |
1459 | if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { |
1457 | if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) { |
1460 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
1458 | draw_artificial_horizon(top_line + 2, bottom_line - 1, naviData.AngleNick, naviData.AngleRoll); |
1461 | } |
1459 | } |