Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2224 → Rev 2225

/C-OSD/trunk/osd_ncmode_minimal.c
1,5 → 1,5
/****************************************************************************
* Copyright (C) 2009-2015 by Claas Anders "CaScAdE" Rathje *
* Copyright (C) 2009-2016 by Claas Anders "CaScAdE" Rathje *
* admiralcascade@gmail.com *
* Project-URL: http://www.mylifesucks.de/oss/c-osd/ *
* *
51,12 → 51,12
uint16_t heading_home = (naviData.HomePositionDeviation.Bearing + 360 - naviData.CompassHeading) % 360;
write_char_xy(17, top_line, 0xa0 + heading_fine_conv(heading_home));
 
if (naviData.Altimeter > 200 || naviData.Altimeter < -200) {
if (naviData.Altimeter_5cm > 200 || naviData.Altimeter_5cm < -200) {
// above 10m only write full meters
write_ndigit_number_s(22, top_line, naviData.Altimeter / 20, 4, 0);
write_ndigit_number_s(22, top_line, naviData.Altimeter_5cm / 20, 4, 0);
} else {
// up to 10m write meters.dm
write_ndigit_number_s_10th(22, top_line, naviData.Altimeter / 2, 3, 0);
write_ndigit_number_s_10th(22, top_line, naviData.Altimeter_5cm / 2, 3, 0);
}
 
draw_variometer(27, top_line, naviData.Variometer);
124,7 → 124,7
if (COSD_FLAGS_CONFIG & COSD_FLAG_GPSHEIGHT) {
if (naviData.CurrentPosition.Altitude / 1000 - altimeter_offset > max_Altimeter) max_Altimeter = naviData.CurrentPosition.Altitude / 1000;
} else {
if (naviData.Altimeter / 20 > max_Altimeter) max_Altimeter = naviData.Altimeter / 20;
if (naviData.Altimeter_5cm / 20 > max_Altimeter) max_Altimeter = naviData.Altimeter_5cm / 20;
}
if (naviData.GroundSpeed > max_GroundSpeed) max_GroundSpeed = naviData.GroundSpeed;
if (naviData.HomePositionDeviation.Distance > max_Distance) {