0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 22:31:25 +03:00

Test with RSSI smoothing removed

This commit is contained in:
OneOfEleven 2023-09-25 18:27:55 +01:00
parent fa3dcf0015
commit a5ff2edff2
3 changed files with 6 additions and 1 deletions

View File

@ -362,15 +362,20 @@ const uint8_t orig_pga = 6; // -3dB
} }
// sample the current RSSI level, average it with the previous rssi // sample the current RSSI level, average it with the previous rssi
#if 0
if (rssi[vfo].count < 1) if (rssi[vfo].count < 1)
{ {
rssi[vfo].level = BK4819_GetRSSI(); rssi[vfo].level = BK4819_GetRSSI();
rssi[vfo].count++; rssi[vfo].count++;
} }
else else
{ { // average of new and old RSSI's
rssi[vfo].level = (rssi[vfo].level + BK4819_GetRSSI()) >> 1; 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 #ifdef ENABLE_AM_FIX_TEST1

Binary file not shown.

Binary file not shown.