From: drowe67 Date: Sat, 17 Sep 2016 02:22:55 +0000 (+0000) Subject: reversed SD mapping to match LDPC code X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=844188b742838e3108cdc46434b0f50537018856;p=freetel-svn-tracking.git reversed SD mapping to match LDPC code git-svn-id: https://svn.code.sf.net/p/freetel/code@2873 01035d8c-6547-0410-b346-abe4f91aad63 --- 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 */