Subversion Repositories Projects

Rev

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

Rev 685 Rev 728
Line 1... Line 1...
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje                    *
2
 *   Copyright (C) 2009-2010 by Claas Anders "CaScAdE" Rathje               *
3
 *   admiralcascade@gmail.com                                               *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
 *                                                                          *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
7
 *   it under the terms of the GNU General Public License as published by   *
Line 59... Line 59...
59
const char menu_item0[] PROGMEM = "Video Mode";
59
const char menu_item0[] PROGMEM = "Video Mode";
60
const char menu_item1[] PROGMEM = "Full HUD";
60
const char menu_item1[] PROGMEM = "Full HUD";
61
const char menu_item2[] PROGMEM = "Art.Horizon in HUD";
61
const char menu_item2[] PROGMEM = "Art.Horizon in HUD";
62
const char menu_item3[] PROGMEM = "Big Vario bar";
62
const char menu_item3[] PROGMEM = "Big Vario bar";
63
const char menu_item4[] PROGMEM = "Statistics";
63
const char menu_item4[] PROGMEM = "Statistics";
64
const char menu_item5[] PROGMEM = "Warnings"; // TODO: do it!
64
//const char menu_item5[] PROGMEM = "Warnings"; // TODO: do it!
-
 
65
const char menu_item5[] PROGMEM = "Current by FC";
65
const char menu_item6[] PROGMEM = "Voltage by C-Strom";
66
const char menu_item6[] PROGMEM = "Voltage by C-Strom";
66
const char menu_item7[] PROGMEM = "Reset uptime";
67
const char menu_item7[] PROGMEM = "Reset uptime";
67
const char menu_item8[] PROGMEM = "Display Mode";
68
const char menu_item8[] PROGMEM = "Display Mode";
68
const char menu_item9[] PROGMEM = "Height by";
69
const char menu_item9[] PROGMEM = "Height by";
69
const char menu_item10[] PROGMEM = "Save config";
70
const char menu_item10[] PROGMEM = "Save config";
Line 240... Line 241...
240
    if (COSD_FLAGS_MODES & COSD_FLAG_STATS) {
241
    if (COSD_FLAGS_MODES & COSD_FLAG_STATS) {
241
        write_ascii_string_pgm(23, 6, ON);
242
        write_ascii_string_pgm(23, 6, ON);
242
    } else {
243
    } else {
243
        write_ascii_string_pgm(23, 6, OFF);
244
        write_ascii_string_pgm(23, 6, OFF);
244
    }
245
    }
245
    if (COSD_FLAGS_MODES & COSD_FLAG_WARNINGS) {
246
    /*if (COSD_FLAGS_MODES & COSD_FLAG_WARNINGS) {
-
 
247
        write_ascii_string_pgm(23, 7, ON);
-
 
248
    } else {
-
 
249
        write_ascii_string_pgm(23, 7, OFF);
-
 
250
    }*/
-
 
251
        if (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT) {
246
        write_ascii_string_pgm(23, 7, ON);
252
        write_ascii_string_pgm(23, 7, ON);
247
    } else {
253
    } else {
248
        write_ascii_string_pgm(23, 7, OFF);
254
        write_ascii_string_pgm(23, 7, OFF);
249
    }
255
    }
250
    if (COSD_FLAGS_MODES & COSD_FLAG_STROMVOLT) {
256
    if (COSD_FLAGS_MODES & COSD_FLAG_STROMVOLT) {
Line 341... Line 347...
341
                    break;
347
                    break;
342
                case 4: // statistics
348
                case 4: // statistics
343
                    COSD_FLAGS_MODES ^= COSD_FLAG_STATS;
349
                    COSD_FLAGS_MODES ^= COSD_FLAG_STATS;
344
                    config_menu_drawings(chosen);
350
                    config_menu_drawings(chosen);
345
                    break;
351
                    break;
346
                case 5: // warnings
352
                /*case 5: // warnings
347
                    COSD_FLAGS_MODES ^= COSD_FLAG_WARNINGS;
353
                    COSD_FLAGS_MODES ^= COSD_FLAG_WARNINGS;
348
                    config_menu_drawings(chosen);
354
                    config_menu_drawings(chosen);
-
 
355
                    break;*/
-
 
356
                case 5: // current by fc
-
 
357
                    COSD_FLAGS_MODES ^= COSD_FLAG_FCCURRENT;
-
 
358
                    config_menu_drawings(chosen);
349
                    break;
359
                    break;
350
                case 6: // 2nd voltage by c-strom
360
                                case 6: // 2nd voltage by c-strom
351
                    COSD_FLAGS_MODES ^= COSD_FLAG_STROMVOLT;
361
                    COSD_FLAGS_MODES ^= COSD_FLAG_STROMVOLT;
352
                    config_menu_drawings(chosen);
362
                    config_menu_drawings(chosen);
353
                    break;
363
                    break;
354
                case 7: // reset uptime
364
                case 7: // reset uptime
355
                    uptime = 0;
365
                    uptime = 0;