Subversion Repositories Projects

Rev

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

Rev 766 Rev 783
Line 21... Line 21...
21
#include "main.h"
21
#include "main.h"
22
#include "max7456_software_spi.h"
22
#include "max7456_software_spi.h"
23
#include "osd_helpers.h"
23
#include "osd_helpers.h"
24
#include "osd_ncmode_default.h"
24
#include "osd_ncmode_default.h"
25
 
25
 
26
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
26
#if (!(ALLCHARSDEBUG || (WRITECHARS != -1)) && !FCONLY)
27
 
27
 
28
int osd_ncmode_minimal() {
28
int osd_ncmode_minimal() {
29
 
29
 
30
    if (COSD_FLAGS_MODES & COSD_FLAG_HUD) {
30
    if (COSD_FLAGS_MODES & COSD_FLAG_HUD) {
31
        // write icons at init or after menu/mode-switch
31
        // write icons at init or after menu/mode-switch
Line 60... Line 60...
60
 
60
 
61
        draw_variometer(27, top_line, naviData.Variometer);
61
        draw_variometer(27, top_line, naviData.Variometer);
62
 
62
 
63
 
63
 
64
        // center
64
        // center
65
        if (naviData.FCFlags & FLAG_MOTOR_RUN) { // should be engines running
65
        if (naviData.FCFlags & FCFLAG_MOTOR_RUN) { // should be engines running
66
            if (!(old_MKFlags & FLAG_MOTOR_RUN)) { // motors just started, clear middle
66
            if (!(old_MKFlags & FCFLAG_MOTOR_RUN)) { // motors just started, clear middle
67
                clear();
67
                clear();
68
                // update flags to paint display again if needed
68
                // update flags to paint display again if needed
69
                COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN;
69
                COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN;
70
            }
70
            }
71
            if (COSD_FLAGS_MODES & COSD_FLAG_ARTHORIZON) {
71
            if (COSD_FLAGS_MODES & COSD_FLAG_ARTHORIZON) {
Line 147... Line 147...
147
            write_char_xy(27, bottom_line, 201); // sat2 (free)
147
            write_char_xy(27, bottom_line, 201); // sat2 (free)
148
        }
148
        }
149
    }
149
    }
150
 
150
 
151
    // remember statistics (only when engines running)
151
    // remember statistics (only when engines running)
152
    if (naviData.FCFlags & FLAG_MOTOR_RUN) {
152
    if (naviData.FCFlags & FCFLAG_MOTOR_RUN) {
153
        if (naviData.Altimeter > max_Altimeter) max_Altimeter = naviData.Altimeter;
153
        if (naviData.Altimeter > max_Altimeter) max_Altimeter = naviData.Altimeter;
154
        if (naviData.GroundSpeed > max_GroundSpeed) max_GroundSpeed = naviData.GroundSpeed;
154
        if (naviData.GroundSpeed > max_GroundSpeed) max_GroundSpeed = naviData.GroundSpeed;
155
        if (naviData.HomePositionDeviation.Distance > max_Distance) {
155
        if (naviData.HomePositionDeviation.Distance > max_Distance) {
156
            max_Distance = naviData.HomePositionDeviation.Distance;
156
            max_Distance = naviData.HomePositionDeviation.Distance;
157
        }
157
        }