26,8 → 26,6 |
#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 |
|
if (COSD_FLAGS_MODES & COSD_FLAG_HUD) { |
// write icons at init or after menu/mode-switch |
if (!(COSD_FLAGS_RUNTIME & COSD_ICONS_WRITTEN)) { |
41,13 → 39,11 |
write_char_xy(27, top_line, 0xCC); // small meters m height |
} |
|
write_char_xy(10, top_line, 0xCA); // RC-transmitter |
write_char_xy(16, top_line, 0xD0); // degree symbol |
|
write_char_xy(20, top_line + 1, 0xB0); // left circle |
write_char_xy(22, top_line + 1, 0xB2); // right circle |
|
|
write_char_xy(7, bottom_line, 0x9E); // small V |
if ((COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) || (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT)) { |
write_char_xy(7, bottom_line - 1, 0x9F); // small A |
79,16 → 75,22 |
} |
} |
|
write_ndigit_number_u(7, top_line, rc_signal, 3, 0); |
if (rc_signal <= RCLVL_WRN && last_RC_Quality > RCLVL_WRN) { |
write_ndigit_number_u(7, top_line, naviData.RC_Quality, 3, 0); |
if (naviData.RC_Quality <= RCLVL_WRN && last_RC_Quality > RCLVL_WRN) { |
for (uint8_t x = 0; x < 4; x++) |
write_char_att_xy(7 + x, top_line, BLINK); |
} else if (rc_signal > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) { |
} else if (naviData.RC_Quality > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) { |
for (uint8_t x = 0; x < 4; x++) |
write_char_att_xy(7 + x, top_line, 0); |
} |
|
if (naviData.FCStatusFlags2 & FC_STATUS2_CAREFREE) { |
write_char_xy(10, top_line, 0x8F); // smiling CF transmitter |
} else { |
write_char_xy(10, top_line, 0xCA); // RC-transmitter |
} |
|
|
if (naviData.NCFlags & NC_FLAG_NOSERIALLINK) { |
write_char_xy(11, top_line, 0); // clear |
} else { |
303,7 → 305,7 |
} |
|
// remember last values |
last_RC_Quality = rc_signal; |
last_RC_Quality = naviData.RC_Quality; |
last_UBat = naviData.UBat; |
old_MKFlags = naviData.FCFlags; |
old_NCFlags = naviData.NCFlags; |