Subversion Repositories Projects

Rev

Rev 761 | Rev 783 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 761 Rev 766
Line 49... Line 49...
49
        } else if (debugData.Analog[10] > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) {
49
        } else if (debugData.Analog[10] > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) {
50
            for (uint8_t x = 0; x < 4; x++)
50
            for (uint8_t x = 0; x < 4; x++)
51
                write_char_att_xy(7 + x, top_line, 0);
51
                write_char_att_xy(7 + x, top_line, 0);
52
        }
52
        }
Line 53... Line 53...
53
 
53
 
54
        if (debugData.Analog[5] > 300 || debugData.Analog[5] < -300) {
54
        if (debugData.Analog[5] > 200 || debugData.Analog[5] < -200) {
55
            // above 10m only write full meters
55
            // above 10m only write full meters
56
            write_ndigit_number_s(23, top_line, debugData.Analog[5] / 30, 4, 0);
56
            write_ndigit_number_s(23, top_line, debugData.Analog[5] / 20, 4, 0);
57
        } else {
57
        } else {
58
            // up to 10m write meters.dm
58
            // up to 10m write meters.dm
59
            write_ndigit_number_s_10th(23, top_line, debugData.Analog[5] / 3, 3, 0);
59
            write_ndigit_number_s_10th(23, top_line, debugData.Analog[5] / 2, 3, 0);
60
        }
60
        }
Line 61... Line 61...
61
        if (debugData.Analog[5] > max_Altimeter) max_Altimeter = debugData.Analog[5];
61
        if (debugData.Analog[5] > max_Altimeter) max_Altimeter = debugData.Analog[5];
62
 
62