reversed SD mapping to match LDPC code
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Sep 2016 02:22:55 +0000 (02:22 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sat, 17 Sep 2016 02:22:55 +0000 (02:22 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2873 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/src/fsk.c

index 468175bce15a062e3410fcd2cb1eeac1e447b5f0..14fec2bf728b9dcff56fe53f6127df86fa3e4698 100644 (file)
@@ -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 */