mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 06:11:24 +03:00
Test with RSSI smoothing removed
This commit is contained in:
parent
fa3dcf0015
commit
a5ff2edff2
7
am_fix.c
7
am_fix.c
@ -362,15 +362,20 @@ const uint8_t orig_pga = 6; // -3dB
|
||||
}
|
||||
|
||||
// sample the current RSSI level, average it with the previous rssi
|
||||
#if 0
|
||||
if (rssi[vfo].count < 1)
|
||||
{
|
||||
rssi[vfo].level = BK4819_GetRSSI();
|
||||
rssi[vfo].count++;
|
||||
}
|
||||
else
|
||||
{
|
||||
{ // average of new and old RSSI's
|
||||
rssi[vfo].level = (rssi[vfo].level + BK4819_GetRSSI()) >> 1;
|
||||
}
|
||||
#else
|
||||
// no averaging with previous RSSI's
|
||||
rssi[vfo].level = BK4819_GetRSSI();
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_AM_FIX_TEST1
|
||||
|
||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user