From 5138164bfc3b415ef631b0bd45381096ae1ff7b3 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Mon, 7 Apr 2014 13:32:46 +0200 Subject: [PATCH] Changed decode phase window --- Modem/afsk.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modem/afsk.c b/Modem/afsk.c index 91b3fa3..08de92c 100644 --- a/Modem/afsk.c +++ b/Modem/afsk.c @@ -280,7 +280,10 @@ void afsk_adc_isr(Afsk *afsk, int8_t currentSample) { afsk->iirX[1] = ((int8_t)fifo_pop(&afsk->delayFifo) * currentSample) >> 2; afsk->iirY[0] = afsk->iirY[1]; - afsk->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1); + + af->iirY[1] = af->iirX[0] + af->iirX[1] + (af->iirY[0] >> 1) + (af->iirY[0] >> 3) + (af->iirY[0] >> 5); // Butterworth + //afsk->iirY[1] = afsk->iirX[0] + afsk->iirX[1] + (afsk->iirY[0] >> 1); // Chebyshev + // We put the sampled bit in a delay-line: // First we bitshift everything 1 left