bpsk_costas_loop_cc now locks to +1+0j and -1+0j

This commit is contained in:
ha7ilm 2017-05-02 19:31:29 +02:00
parent 36eb0c3481
commit ac8e1b61b4
2 changed files with 2 additions and 2 deletions

View file

@ -693,7 +693,7 @@
</param>
<param>
<key>commandline</key>
<value>csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 300 --dd 2&gt;/tmp/cout</value>
<value>csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 5 2&gt;/tmp/cout</value>
</param>
<param>
<key>comment</key>

View file

@ -2083,7 +2083,7 @@ void bpsk_costas_loop_cc(complexf* input, complexf* output, int input_size, bpsk
for(int i=0;i<input_size;i++)
{
complexf nco_sample;
e_powj(&nco_sample, -s->nco_phase);
e_powj(&nco_sample, s->nco_phase);
cmult(&output[i], &input[i], &nco_sample);
float error = 0;
if(s->decision_directed)