Subversion Repositories Projects

Rev

Rev 459 | Rev 471 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 459 Rev 468
Line 21... Line 21...
21
// write icons at init or after menu/mode-switch
21
// write icons at init or after menu/mode-switch
22
if (!(COSD_FLAGS & COSD_ICONS_WRITTEN)) {
22
if (!(COSD_FLAGS & COSD_ICONS_WRITTEN)) {
23
    write_char_xy(10, top_line, 0xCA); // RC-transmitter
23
    write_char_xy(10, top_line, 0xCA); // RC-transmitter
24
    write_char_xy(27, top_line, 0xCC); // small meters m height
24
    write_char_xy(27, top_line, 0xCC); // small meters m height
25
    write_char_xy(7, bottom_line, 0x9E); // small v
25
    write_char_xy(7, bottom_line, 0x9E); // small v
-
 
26
        if (COSD_FLAGS2 & COSD_FLAG_STROMREC) {
-
 
27
                write_char_xy(7, bottom_line - 1, 0x9F); // small A
-
 
28
                write_char_xy(14, bottom_line - 1, 0xB5); // mah
-
 
29
        }
26
        COSD_FLAGS |= COSD_ICONS_WRITTEN;
30
        COSD_FLAGS |= COSD_ICONS_WRITTEN;
27
}
31
}
Line 28... Line 32...
28
 
32
 
29
write_ndigit_number_u(7, top_line, debugData.Analog[10], 100, 0);
33
write_ndigit_number_u(7, top_line, debugData.Analog[10], 100, 0);
Line 48... Line 52...
48
 
52
 
49
if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) {
53
if (COSD_FLAGS & COSD_FLAG_ARTHORIZON) {
50
    draw_artificial_horizon(top_line + 2, bottom_line - 1, debugData.Analog[0], debugData.Analog[1]);
54
    draw_artificial_horizon(top_line + 2, bottom_line - 1, debugData.Analog[0], debugData.Analog[1]);
Line -... Line 55...
-
 
55
}
-
 
56
 
-
 
57
// pre-bottom line
-
 
58
if (COSD_FLAGS2 & COSD_FLAG_STROMREC) {
-
 
59
        //write_ndigit_number_s(3, bottom_line - 1, ampere, 1000, 0);
-
 
60
        write_ndigit_number_u_10th(3, bottom_line - 1, ampere / 10, 100, 0);
51
}
61
}
52
 
62
 
53
draw_battery(2, bottom_line, min_voltage, debugData.Analog[9], max_voltage);
63
draw_battery(2, bottom_line, min_voltage, debugData.Analog[9], max_voltage);
54
write_ndigit_number_u_10th(3, bottom_line, debugData.Analog[9], 100, 0);
64
write_ndigit_number_u_10th(3, bottom_line, debugData.Analog[9], 100, 0);
55
if (debugData.Analog[9] <= min_voltage && last_UBat > min_voltage) {
65
if (debugData.Analog[9] <= min_voltage && last_UBat > min_voltage) {