26,6 → 26,8 |
#if !(ALLCHARSDEBUG|(WRITECHARS != -1)) |
|
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)) { |
54,11 → 56,11 |
// first line |
write_ndigit_number_u(2, top_line, (uint16_t) (((uint32_t) naviData.GroundSpeed * (uint32_t) 9) / (uint32_t) 250), 3, 0); |
|
write_ndigit_number_u(7, top_line, naviData.RC_Quality, 3, 0); |
if (naviData.RC_Quality <= RCLVL_WRN && last_RC_Quality > RCLVL_WRN) { |
write_ndigit_number_u(7, top_line, rc_signal, 3, 0); |
if (rc_signal <= 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 (naviData.RC_Quality > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) { |
} else if (rc_signal > RCLVL_WRN && last_RC_Quality <= RCLVL_WRN) { |
for (uint8_t x = 0; x < 4; x++) |
write_char_att_xy(7 + x, top_line, 0); |
} |
251,7 → 253,7 |
} |
|
// remember last values |
last_RC_Quality = naviData.RC_Quality; |
last_RC_Quality = rc_signal; |
last_UBat = naviData.UBat; |
old_MKFlags = naviData.FCFlags; |
seconds_since_last_data = 0; |