From: drowe67 Date: Sat, 16 Feb 2013 04:51:46 +0000 (+0000) Subject: normalised DPSK phase subtarctions to make scatter plot more accurate X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=23bffc1dd00c82ca4c998e4d002ef7102843ec36;p=freetel-svn-tracking.git normalised DPSK phase subtarctions to make scatter plot more accurate git-svn-id: https://svn.code.sf.net/p/freetel/code@1158 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/src/fdmdv.c b/codec2-dev/src/fdmdv.c index 703bd4cc..8f065c38 100644 --- a/codec2-dev/src/fdmdv.c +++ b/codec2-dev/src/fdmdv.c @@ -956,7 +956,7 @@ float qpsk_to_bits(int rx_bits[], int *sync_bit, COMP phase_difference[], COMP p COMP pi_on_4; COMP d; int msb=0, lsb=0; - float ferr; + float ferr, norm; pi_on_4.real = cos(PI/4.0); pi_on_4.imag = sin(PI/4.0); @@ -964,8 +964,10 @@ float qpsk_to_bits(int rx_bits[], int *sync_bit, COMP phase_difference[], COMP p /* Extra 45 degree clockwise lets us use real and imag axis as decision boundaries */ - for(c=0; c