1,5 → 1,5 |
/**************************************************************************** |
* Copyright (C) 2009-2013 by Claas Anders "CaScAdE" Rathje * |
* Copyright (C) 2009-2014 by Claas Anders "CaScAdE" Rathje * |
* admiralcascade@gmail.com * |
* Project-URL: http://www.mylifesucks.de/oss/c-osd/ * |
* * |
63,7 → 63,7 |
|
|
// center |
if (naviData.FCFlags & FCFLAG_MOTOR_RUN) { // should be engines running |
if (naviData.FCStatusFlags & FCFLAG_MOTOR_RUN) { // should be engines running |
if (!(old_MKFlags & FCFLAG_MOTOR_RUN)) { // motors just started, clear middle |
clear(); |
// update flags to paint display again if needed |
120,7 → 120,7 |
} |
|
// remember statistics (only when engines running) |
if (naviData.FCFlags & FCFLAG_MOTOR_RUN) { |
if (naviData.FCStatusFlags & 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 { |
142,7 → 142,7 |
// remember last values |
last_RC_Quality = naviData.RC_Quality; |
last_UBat = naviData.UBat; |
old_MKFlags = naviData.FCFlags; |
old_MKFlags = naviData.FCStatusFlags; |
old_NCFlags = naviData.NCFlags; |
seconds_since_last_data = 0; |
|