Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 782 → Rev 783

/C-OSD/trunk/osd_ncmode_default.c
23,7 → 23,7
#include "osd_helpers.h"
#include "osd_ncmode_default.h"
 
#if !(ALLCHARSDEBUG|(WRITECHARS != -1))
#if (!(ALLCHARSDEBUG || (WRITECHARS != -1)) && !FCONLY)
 
int osd_ncmode_default() {
uint8_t rc_signal = naviData.RC_RSSI ? naviData.RC_RSSI : naviData.RC_Quality; // if RSSI is present use it, else use Qality
139,8 → 139,8
}
 
// center
if (naviData.FCFlags & FLAG_MOTOR_RUN) { // should be engines running
if (!(old_MKFlags & FLAG_MOTOR_RUN)) { // motors just started, clear middle
if (naviData.FCFlags & FCFLAG_MOTOR_RUN) { // should be engines running
if (!(old_MKFlags & FCFLAG_MOTOR_RUN)) { // motors just started, clear middle
clear();
// remember current heigth for gps offset
altimeter_offset = naviData.CurrentPosition.Altitude / 1000;
167,7 → 167,7
// motors are on, assume we were/are flying
COSD_FLAGS_RUNTIME |= COSD_WASFLYING;
} else {
if ((old_MKFlags & FLAG_MOTOR_RUN)) { // motors just stopped
if ((old_MKFlags & FCFLAG_MOTOR_RUN)) { // motors just stopped
clear(); // clear whole screen in case there is horizon stuff left
// update flags to paint display again if needed
COSD_FLAGS_RUNTIME &= ~COSD_ICONS_WRITTEN;
286,7 → 286,7
//write_number_s(16, 5, setsReceived++);
 
// remember statistics (only when engines running)
if (naviData.FCFlags & FLAG_MOTOR_RUN) {
if (naviData.FCFlags & FCFLAG_MOTOR_RUN) {
if (COSD_FLAGS_CONFIG & COSD_FLAG_GPSHEIGHT) {
if (naviData.CurrentPosition.Altitude / 1000 - altimeter_offset > max_Altimeter) max_Altimeter = naviData.CurrentPosition.Altitude / 1000;
} else {