bpsk_costas_loop_cc now locks to +1+0j and -1+0j
This commit is contained in:
parent
36eb0c3481
commit
ac8e1b61b4
2 changed files with 2 additions and 2 deletions
|
@ -693,7 +693,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>commandline</key>
|
<key>commandline</key>
|
||||||
<value>csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 300 --dd 2>/tmp/cout</value>
|
<value>csdr bpsk_costas_loop_cc $(csdr =2*pi/100) 0.707 5 2>/tmp/cout</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>comment</key>
|
<key>comment</key>
|
||||||
|
|
|
@ -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++)
|
for(int i=0;i<input_size;i++)
|
||||||
{
|
{
|
||||||
complexf nco_sample;
|
complexf nco_sample;
|
||||||
e_powj(&nco_sample, -s->nco_phase);
|
e_powj(&nco_sample, s->nco_phase);
|
||||||
cmult(&output[i], &input[i], &nco_sample);
|
cmult(&output[i], &input[i], &nco_sample);
|
||||||
float error = 0;
|
float error = 0;
|
||||||
if(s->decision_directed)
|
if(s->decision_directed)
|
||||||
|
|
Loading…
Reference in a new issue