Subversion Repositories Projects

Rev

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

Rev 1437 Rev 1771
Line 47... Line 47...
47
 
47
 
48
// video modes
48
// video modes
49
const char VM_PAL[] PROGMEM = "PAL ";
49
const char VM_PAL[] PROGMEM = "PAL ";
Line -... Line 50...
-
 
50
const char VM_NTSC[] PROGMEM = "NTSC";
-
 
51
 
-
 
52
#if FCONLY
50
const char VM_NTSC[] PROGMEM = "NTSC";
53
    const displaymode_t * mode = fcdisplaymodes;
-
 
54
#else
Line 51... Line 55...
51
 
55
        const displaymode_t * mode = ncdisplaymodes;
52
const displaymode_t * mode;
56
#endif
53
 
57
 
54
/**
58
/**
Line 91... Line 95...
91
 
95
 
92
    write_ascii_string_pgm(2, 1, PSTR("C-OSD"));
96
    write_ascii_string_pgm(2, 1, PSTR("C-OSD"));
93
    write_ascii_string_pgm(3, 2, PSTR("boot"));
97
    write_ascii_string_pgm(3, 2, PSTR("boot"));
Line 94... Line 98...
94
    draw_logo(11, 1);
98
    draw_logo(11, 1);
Line 95... Line 99...
95
 
99
 
Line 96... Line 100...
96
    write_ascii_string_pgm(2, 5, PSTR(BUILDDATE));
100
    write_ascii_string_pgm(2, 5, PSTR(BUILDOSDBUILDDATE));
97
 
101
 
Line 103... Line 107...
103
    } else {
107
    } else {
104
        write_ascii_string_pgm(23, 1, VM_PAL);
108
        write_ascii_string_pgm(23, 1, VM_PAL);
105
    }
109
    }
Line -... Line 110...
-
 
110
 
-
 
111
 
-
 
112
 
-
 
113
    write_ascii_string_pgm(2, 7, PSTR("Setting  :"));
-
 
114
    write_ascii_string_pgm(2, 8, PSTR("Battery:")); // Guessing Number of Cells
-
 
115
       
-
 
116
    write_ascii_string_pgm(13, 8, PSTR("Cells")); // Number of Cells
-
 
117
    write_ascii_string_pgm(2, 9, PSTR("Warn:")); // Warn Voltage
-
 
118
       
106
 
119
    write_ascii_string_pgm(14, 9, PSTR("Max:")); // Max Voltage
107
 
120
 
108
#if FCONLY
121
#if FCONLY
109
    write_ascii_string_pgm(2, 4, PSTR("FC only Mode"));
122
    write_ascii_string_pgm(2, 4, PSTR("FC only Mode"));
Line 120... Line 133...
120
 
133
 
Line 121... Line 134...
121
    //write_ascii_char(4 + 12 * 30, rxd_buffer[2]);
134
    //write_ascii_char(4 + 12 * 30, rxd_buffer[2]);
122
 
135
 
123
    paramset_serial setting;
-
 
124
    setting = *((paramset_serial*)pRxData);
-
 
125
 
136
    paramset_serial setting;
126
    write_ascii_string_pgm(2, 7, PSTR("Setting  :"));
137
    setting = *((paramset_serial*)pRxData);
Line 127... Line 138...
127
    write_ndigit_number_u(10, 7, setting.SettingsIndex, 1, 1);
138
    write_ndigit_number_u(10, 7, setting.SettingsIndex, 1, 1);
128
    write_ascii_string_len(13, 7, setting.param.Name, 12);
-
 
129
 
139
    write_ascii_string_len(13, 7, setting.param.Name, 12);
130
    uint8_t cells = 0;
140
 
Line 131... Line 141...
131
    write_ascii_string_pgm(2, 8, PSTR("Battery:")); // Guessing Number of Cells
141
    uint8_t cells = 0;
132
    if (CELL_NUM == -1) {
142
    if (CELL_NUM == -1) {
Line 150... Line 160...
150
    }
160
    }
Line 151... Line 161...
151
 
161
 
Line 152... Line 162...
152
    max_voltage = cells * CELL_VOLT_MAX;
162
    max_voltage = cells * CELL_VOLT_MAX;
153
 
-
 
154
    write_ndigit_number_u(11, 8, cells, 1, 0);
-
 
155
    write_ascii_string_pgm(13, 8, PSTR("Cells")); // Number of Cells
163
 
156
    write_ascii_string_pgm(2, 9, PSTR("Warn:")); // Warn Voltage
-
 
157
    write_ndigit_number_s_10th(8, 9, min_voltage, 3, 0);
164
    write_ndigit_number_u(11, 8, cells, 1, 0);
Line 158... Line 165...
158
    write_ascii_string_pgm(14, 9, PSTR("Max:")); // Max Voltage
165
    write_ndigit_number_s_10th(8, 9, min_voltage, 3, 0);