From 844188b742838e3108cdc46434b0f50537018856 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Sat, 17 Sep 2016 02:22:55 +0000 Subject: [PATCH] reversed SD mapping to match LDPC code git-svn-id: https://svn.code.sf.net/p/freetel/code@2873 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/src/fsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec2-dev/src/fsk.c b/codec2-dev/src/fsk.c index 468175bc..14fec2bf 100644 --- a/codec2-dev/src/fsk.c +++ b/codec2-dev/src/fsk.c @@ -775,7 +775,7 @@ void fsk2_demod(struct FSK *fsk, uint8_t rx_bits[], float rx_sd[], float fsk_in[ } /* Produce soft decision symbols */ if(rx_sd != NULL){ - rx_sd[i] = sqrtf(tmax[1]) - sqrtf(tmax[0]); + rx_sd[i] = sqrtf(tmax[0]) - sqrtf(tmax[1]); } /* Accumulate resampled int magnitude for EbNodB estimation */ /* Standard deviation is calculated by algorithm devised by crafty soviets */ -- 2.25.1