Skip to content

Commit

Permalink
sum adjacent bins in double precision
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Apr 28, 2024
1 parent ac86efc commit a8234c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectrum.c
Expand Up @@ -71,7 +71,7 @@ void *demod_spectrum(void *arg){
while(downconvert(chan) == 0){
int binp = 0;
for(int i=0; i < chan->spectrum.bin_count; i++){ // For each noncoherent integration bin above center freq
float p = 0;
double p = 0;
for(int j=0; j < binsperbin; j++){ // Add energy of each fft bin that's part of this user integration bin
p += cnrmf(chan->filter.out.fdomain[binp++]);
}
Expand Down

0 comments on commit a8234c4

Please sign in to comment.