mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
First test
This commit is contained in:
@ -101,6 +101,9 @@ const t_menu_item MenuList[] =
|
||||
{"BATVOL", 0, VOICE_ID_INVALID, MENU_VOL }, // was "VOL"
|
||||
{"BATTXT", 0, VOICE_ID_INVALID, MENU_BAT_TXT },
|
||||
{"MODE", 0, VOICE_ID_INVALID, MENU_AM }, // was "AM"
|
||||
#ifdef ENABLE_AM_AGC_GAIN
|
||||
{"AM-FIX", 0, VOICE_ID_INVALID, MENU_AM_FIX },
|
||||
#endif
|
||||
#ifdef ENABLE_NOAA
|
||||
{"NOAA-S", 0, VOICE_ID_INVALID, MENU_NOAA_S },
|
||||
#endif
|
||||
@ -416,6 +419,12 @@ void UI_DisplayMenu(void)
|
||||
strcpy(String, (gSubMenuSelection == 0) ? "FM" : "AM");
|
||||
break;
|
||||
|
||||
#ifdef ENABLE_AM_AGC_GAIN
|
||||
case MENU_AM_FIX:
|
||||
strcpy(String, (gSubMenuSelection == 0) ? "OFF" : "FIXED");
|
||||
break;
|
||||
#endif
|
||||
|
||||
case MENU_AUTOLK:
|
||||
strcpy(String, (gSubMenuSelection == 0) ? "OFF" : "AUTO");
|
||||
break;
|
||||
|
@ -93,6 +93,9 @@ enum
|
||||
MENU_VOL,
|
||||
MENU_BAT_TXT,
|
||||
MENU_AM,
|
||||
#ifdef ENABLE_AM_AGC_GAIN
|
||||
MENU_AM_FIX,
|
||||
#endif
|
||||
#ifdef ENABLE_NOAA
|
||||
MENU_NOAA_S,
|
||||
#endif
|
||||
|
20
ui/rssi.c
20
ui/rssi.c
@ -111,13 +111,19 @@ void UI_UpdateRSSI(uint16_t RSSI)
|
||||
|
||||
//const int16_t dBm = (int16_t)(RSSI / 2) - 160;
|
||||
|
||||
//const unsigned int band = gRxVfo->Band;
|
||||
const unsigned int band = 0;
|
||||
|
||||
const uint16_t level0 = gEEPROM_RSSI_CALIB[band][0];
|
||||
const uint16_t level1 = gEEPROM_RSSI_CALIB[band][1];
|
||||
const uint16_t level2 = gEEPROM_RSSI_CALIB[band][2];
|
||||
const uint16_t level3 = gEEPROM_RSSI_CALIB[band][3];
|
||||
#if 0
|
||||
//const unsigned int band = gRxVfo->Band;
|
||||
const unsigned int band = 0;
|
||||
const uint16_t level0 = gEEPROM_RSSI_CALIB[band][0];
|
||||
const uint16_t level1 = gEEPROM_RSSI_CALIB[band][1];
|
||||
const uint16_t level2 = gEEPROM_RSSI_CALIB[band][2];
|
||||
const uint16_t level3 = gEEPROM_RSSI_CALIB[band][3];
|
||||
#else
|
||||
const uint16_t level0 = (-115 + 160) * 2; // dB
|
||||
const uint16_t level1 = ( -89 + 160) * 2; // dB
|
||||
const uint16_t level2 = ( -64 + 160) * 2; // dB
|
||||
const uint16_t level3 = ( -39 + 160) * 2; // dB
|
||||
#endif
|
||||
const uint16_t level01 = (level0 + level1) / 2;
|
||||
const uint16_t level12 = (level1 + level2) / 2;
|
||||
const uint16_t level23 = (level2 + level3) / 2;
|
||||
|
Reference in New Issue
Block a user