Fixed fastddc_fwd_cc :-)
This commit is contained in:
parent
a6cf61d60b
commit
895bc20409
2 changed files with 37 additions and 9 deletions
3
csdr.c
3
csdr.c
|
@ -1684,9 +1684,10 @@ int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
FEOF_CHECK;
|
FEOF_CHECK;
|
||||||
//overlapped FFT
|
//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);
|
fread(input+ddc.overlap_length, sizeof(complexf), ddc.input_size, stdin);
|
||||||
apply_window_c(input,windowed,ddc.fft_size,window);
|
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);
|
fft_execute(plan);
|
||||||
fwrite(output, sizeof(complexf), ddc.fft_size, stdout);
|
fwrite(output, sizeof(complexf), ddc.fft_size, stdout);
|
||||||
TRY_YIELD;
|
TRY_YIELD;
|
||||||
|
|
|
@ -69,6 +69,33 @@
|
||||||
<value></value>
|
<value></value>
|
||||||
</param>
|
</param>
|
||||||
</block>
|
</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>
|
<block>
|
||||||
<key>variable_slider</key>
|
<key>variable_slider</key>
|
||||||
<param>
|
<param>
|
||||||
|
@ -238,7 +265,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_coordinate</key>
|
<key>_coordinate</key>
|
||||||
<value>(424, 59)</value>
|
<value>(424, 235)</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_rotation</key>
|
<key>_rotation</key>
|
||||||
|
@ -281,7 +308,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>commandline</key>
|
<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>
|
||||||
<param>
|
<param>
|
||||||
<key>comment</key>
|
<key>comment</key>
|
||||||
|
@ -297,7 +324,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_coordinate</key>
|
<key>_coordinate</key>
|
||||||
<value>(584, 59)</value>
|
<value>(616, 235)</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_rotation</key>
|
<key>_rotation</key>
|
||||||
|
@ -403,7 +430,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_coordinate</key>
|
<key>_coordinate</key>
|
||||||
<value>(936, 155)</value>
|
<value>(952, 155)</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_rotation</key>
|
<key>_rotation</key>
|
||||||
|
@ -439,7 +466,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>samp_rate</key>
|
<key>samp_rate</key>
|
||||||
<value>samp_rate</value>
|
<value>samp_rate/decimation</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>title</key>
|
<key>title</key>
|
||||||
|
@ -494,7 +521,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_enabled</key>
|
<key>_enabled</key>
|
||||||
<value>True</value>
|
<value>1</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>fft_size</key>
|
<key>fft_size</key>
|
||||||
|
@ -506,7 +533,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_coordinate</key>
|
<key>_coordinate</key>
|
||||||
<value>(936, 371)</value>
|
<value>(616, 379)</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>_rotation</key>
|
<key>_rotation</key>
|
||||||
|
@ -617,7 +644,7 @@
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>samp_rate</key>
|
<key>samp_rate</key>
|
||||||
<value>samp_rate</value>
|
<value>samp_rate/decimation</value>
|
||||||
</param>
|
</param>
|
||||||
<param>
|
<param>
|
||||||
<key>t_scale</key>
|
<key>t_scale</key>
|
||||||
|
|
Loading…
Reference in a new issue