From a88ff12555ec5d1c73e2f65ed61b39d13a8fba8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Hamal=20Dvo=C5=99=C3=A1k?= Date: Tue, 2 Jul 2024 01:57:20 +0200 Subject: [PATCH] Remove DC offset filter Since we are off-tuning, we no longer need it. --- src/main.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main.c b/src/main.c index 78ad6f6..e56c5aa 100644 --- a/src/main.c +++ b/src/main.c @@ -462,8 +462,6 @@ static void rf_rx(void) const uint32_t base = (uint32_t)rx_cos; int pos = 0; - int64_t dcI = 0, dcQ = 0; - while (true) { if (multicore_fifo_rvalid()) { multicore_fifo_pop_blocking(); @@ -546,10 +544,6 @@ static void rf_rx(void) int64_t I = I1 - I3 + Q2 - Q4; int64_t Q = Q1 - Q3 - I2 + I4; - int64_t I16 = I << 16; - dcI = ((dcI << 16) - dcI + I16) >> 16; - I = (I16 - dcI) >> 16; - I *= gain; I /= max_amplitude; @@ -560,10 +554,6 @@ static void rf_rx(void) *blockptr++ = I + 128; - int64_t Q16 = Q << 16; - dcQ = ((dcQ << 16) - dcQ + Q16) >> 16; - Q = (Q16 - dcQ) >> 16; - Q *= gain; Q /= max_amplitude;