Remove DC offset filter

Since we are off-tuning, we no longer need it.
This commit is contained in:
Jan Hamal Dvořák 2024-07-02 01:57:20 +02:00
parent 6e70ef1433
commit a88ff12555

View file

@ -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;