From a8234c42404f71f0def2839ab9ac31f3bcebf90c Mon Sep 17 00:00:00 2001 From: Phil Karn Date: Sun, 28 Apr 2024 09:15:30 -0700 Subject: [PATCH] sum adjacent bins in double precision --- spectrum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spectrum.c b/spectrum.c index b1122a23..c5438781 100644 --- a/spectrum.c +++ b/spectrum.c @@ -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++]); }