0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-27 22:01:26 +03:00

increased default NBFM deviation

This commit is contained in:
OneOfEleven 2023-12-04 20:53:27 +00:00
parent acb41f69c6
commit dd5d757573
6 changed files with 15 additions and 18 deletions

View File

@ -52,7 +52,7 @@ ENABLE_WIDE_RX := 1
ENABLE_TX_WHEN_AM := 0
# Frequency calibration 188 B
ENABLE_F_CAL_MENU := 0
ENABLE_FM_DEV_CAL_MENU := 0
ENABLE_FM_DEV_CAL_MENU := 1
ENABLE_TX_UNLOCK_MENU := 0
#ENABLE_TX_POWER_CAL_MENU := 0
ENABLE_TX_POWER_FIX := 1

View File

@ -1478,8 +1478,7 @@ void BK4819_set_CTCSS_freq(const uint32_t control_word)
( 0u << 9) | // Auto CDCSS BW Mode 1 = disable 0 = enable
( 0u << 8) | // Auto CTCSS BW Mode 1 = disable 0 = enable
( 0u << 7) | // ???
// (74u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
(51u << 0));
(51u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
}
// REG_07 <15:0>
@ -1524,8 +1523,7 @@ void BK4819_enable_CDCSS_tail(void)
( 0u << 9) | // Auto CDCSS BW Mode 1 = disable 0 = enable
( 0u << 8) | // Auto CTCSS BW Mode 1 = disable 0 = enable
( 0u << 7) | // ???
// (74u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
(51u << 0));
(51u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
}
void BK4819_enable_CTCSS_tail(void)
@ -1548,8 +1546,7 @@ void BK4819_enable_CTCSS_tail(void)
( 0u << 9) | // Auto CDCSS BW Mode 1 = disable 0 = enable
( 0u << 8) | // Auto CTCSS BW Mode 1 = disable 0 = enable
( 0u << 7) | // ???
// (74u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
(51u << 0));
(51u << 0)); // CTCSS/CDCSS TX gain 1 0 ~ 127
}
uint16_t BK4819_GetRSSI(void)

Binary file not shown.

Binary file not shown.

View File

@ -296,14 +296,14 @@ void FUNCTION_Select(function_type_t Function)
BK4819_set_scrambler(g_current_vfo->channel.scrambler);
// 1of11 .. TEST ONLY
if (g_current_vfo->p_tx->code_type == CODE_TYPE_NONE)
// if (g_current_vfo->p_tx->code_type == CODE_TYPE_NONE)
{
const uint16_t reg = BK4819_read_reg(0x2B);
#if 1
// const uint16_t reg = BK4819_read_reg(0x2B);
#if 0
BK4819_write_reg(0x2B, reg | (1u << 2)); // disable the 300Hz TX HPF
//BK4819_write_reg(0x2B, reg | (1u << 1)); // disable the TX LPF
#else
BK4819_write_reg(0x2B, reg & ~(1u << 2)); // enable the 300Hz TX HPF
// BK4819_write_reg(0x2B, reg & ~(1u << 2)); // enable the 300Hz TX HPF
// TX 300Hz LPF
//BK4819_write_reg(0x54, 0x935A); // -3dB
@ -333,10 +333,10 @@ void FUNCTION_Select(function_type_t Function)
BK4819_write_reg(0x74, 52277); // +4dB
// #endif
}
else
{
BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2)); // enable the 300Hz TX HPF
}
// else
// {
// BK4819_write_reg(0x2B, BK4819_read_reg(0x2B) & ~(1u << 2)); // enable the 300Hz TX HPF
// }
break;
}

View File

@ -26,11 +26,11 @@
enum {
FM_DEV_LIMIT_LOWER_NARROW = 700,
FM_DEV_LIMIT_DEFAULT_NARROW = 900,
FM_DEV_LIMIT_UPPER_NARROW = 1500, // 1100
FM_DEV_LIMIT_DEFAULT_NARROW = 1100, // 900
FM_DEV_LIMIT_UPPER_NARROW = 1500,
FM_DEV_LIMIT_LOWER_WIDE = 900,
FM_DEV_LIMIT_DEFAULT_WIDE = 1283,
FM_DEV_LIMIT_DEFAULT_WIDE = 1300,
FM_DEV_LIMIT_UPPER_WIDE = 1600
};