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"
Line 25... Line 25...
25
 
25
 
Line 26... Line 26...
26
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
26
#if (!(ALLCHARSDEBUG || (WRITECHARS != -1)) && !FCONLY)
Line 27... Line 27...
27
 
27
 
28
int osd_ncmode_minimal() {
28
int osd_ncmode_minimal() {
Line 60... Line 60...
60
 
60
 
Line 61... Line 61...
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
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
    }
Line 150... Line 150...
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;