Remove DC offset filter
Since we are off-tuning, we no longer need it.
This commit is contained in:
parent
6e70ef1433
commit
a88ff12555
10
src/main.c
10
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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue