Fixed fastddc_fwd_cc :-)

This commit is contained in:
ha7ilm 2015-11-20 08:21:09 +01:00
parent a6cf61d60b
commit 895bc20409
2 changed files with 37 additions and 9 deletions

3
csdr.c
View file

@ -1684,9 +1684,10 @@ int main(int argc, char *argv[])
{
FEOF_CHECK;
//overlapped FFT
for(int i=0;i<ddc.overlap_length;i++) input[i]=input[i+ddc.overlap_length];
for(int i=0;i<ddc.overlap_length;i++) input[i]=input[i+ddc.input_size];
fread(input+ddc.overlap_length, sizeof(complexf), ddc.input_size, stdin);
apply_window_c(input,windowed,ddc.fft_size,window);
//memcpy(windowed, input, ddc.fft_size*sizeof(complexf)); //we can switch off windows
fft_execute(plan);
fwrite(output, sizeof(complexf), ddc.fft_size, stdout);
TRY_YIELD;

View file

@ -69,6 +69,33 @@
<value></value>
</param>
</block>
<block>
<key>variable</key>
<param>
<key>comment</key>
<value></value>
</param>
<param>
<key>_enabled</key>
<value>True</value>
</param>
<param>
<key>_coordinate</key>
<value>(128, 179)</value>
</param>
<param>
<key>_rotation</key>
<value>0</value>
</param>
<param>
<key>id</key>
<value>decimation</value>
</param>
<param>
<key>value</key>
<value>4</value>
</param>
</block>
<block>
<key>variable_slider</key>
<param>
@ -238,7 +265,7 @@
</param>
<param>
<key>_coordinate</key>
<value>(424, 59)</value>
<value>(424, 235)</value>
</param>
<param>
<key>_rotation</key>
@ -281,7 +308,7 @@
</param>
<param>
<key>commandline</key>
<value>csdr fastddc_fwd_cc 10 | csdr fastddc_inv_cc 10 0.1</value>
<value>csdr fastddc_fwd_cc 4 | csdr fastddc_inv_cc 4 0.1</value>
</param>
<param>
<key>comment</key>
@ -297,7 +324,7 @@
</param>
<param>
<key>_coordinate</key>
<value>(584, 59)</value>
<value>(616, 235)</value>
</param>
<param>
<key>_rotation</key>
@ -403,7 +430,7 @@
</param>
<param>
<key>_coordinate</key>
<value>(936, 155)</value>
<value>(952, 155)</value>
</param>
<param>
<key>_rotation</key>
@ -439,7 +466,7 @@
</param>
<param>
<key>samp_rate</key>
<value>samp_rate</value>
<value>samp_rate/decimation</value>
</param>
<param>
<key>title</key>
@ -494,7 +521,7 @@
</param>
<param>
<key>_enabled</key>
<value>True</value>
<value>1</value>
</param>
<param>
<key>fft_size</key>
@ -506,7 +533,7 @@
</param>
<param>
<key>_coordinate</key>
<value>(936, 371)</value>
<value>(616, 379)</value>
</param>
<param>
<key>_rotation</key>
@ -617,7 +644,7 @@
</param>
<param>
<key>samp_rate</key>
<value>samp_rate</value>
<value>samp_rate/decimation</value>
</param>
<param>
<key>t_scale</key>