selecting BPSK31 now does not screw up main waterfall
This commit is contained in:
parent
c0df96901c
commit
5b99240944
6
csdr.py
6
csdr.py
@ -77,8 +77,8 @@ class dsp:
|
|||||||
return fft_chain_base
|
return fft_chain_base
|
||||||
chain_begin=any_chain_base+"csdr shift_addition_cc --fifo {shift_pipe} | csdr fir_decimate_cc {decimation} {ddc_transition_bw} HAMMING | csdr bandpass_fir_fft_cc --fifo {bpf_pipe} {bpf_transition_bw} HAMMING | csdr squelch_and_smeter_cc --fifo {squelch_pipe} --outfifo {smeter_pipe} 5 1 | "
|
chain_begin=any_chain_base+"csdr shift_addition_cc --fifo {shift_pipe} | csdr fir_decimate_cc {decimation} {ddc_transition_bw} HAMMING | csdr bandpass_fir_fft_cc --fifo {bpf_pipe} {bpf_transition_bw} HAMMING | csdr squelch_and_smeter_cc --fifo {squelch_pipe} --outfifo {smeter_pipe} 5 1 | "
|
||||||
if self.secondary_demodulator:
|
if self.secondary_demodulator:
|
||||||
chain_begin+="tee {iqtee_pipe} | "
|
chain_begin+="csdr tee {iqtee_pipe} | "
|
||||||
chain_begin+="tee {iqtee2_pipe} | " #TODO digimodes, and yes, tee sometimes hangs everything
|
chain_begin+="csdr tee {iqtee2_pipe} | " #TODO digimodes, and yes, tee sometimes hangs everything
|
||||||
chain_end = ""
|
chain_end = ""
|
||||||
if self.audio_compression=="adpcm":
|
if self.audio_compression=="adpcm":
|
||||||
chain_end = " | csdr encode_ima_adpcm_i16_u8"
|
chain_end = " | csdr encode_ima_adpcm_i16_u8"
|
||||||
@ -115,7 +115,7 @@ class dsp:
|
|||||||
self.secondary_demodulator = what
|
self.secondary_demodulator = what
|
||||||
|
|
||||||
def secondary_fft_block_size(self):
|
def secondary_fft_block_size(self):
|
||||||
return (self.samp_rate/self.decimation)/(self.fft_fps) #*2 is there because we do FFT on real signal here
|
return (self.samp_rate/self.decimation)/(self.fft_fps*2) #*2 is there because we do FFT on real signal here
|
||||||
|
|
||||||
def secondary_decimation(self):
|
def secondary_decimation(self):
|
||||||
return 1 #currently unused
|
return 1 #currently unused
|
||||||
|
@ -2240,7 +2240,7 @@ function secondary_demod_create_canvas()
|
|||||||
new_canvas.style.width=$(secondary_demod_canvas_container).width()+"px";
|
new_canvas.style.width=$(secondary_demod_canvas_container).width()+"px";
|
||||||
new_canvas.style.height=$(secondary_demod_canvas_container).height()+"px";
|
new_canvas.style.height=$(secondary_demod_canvas_container).height()+"px";
|
||||||
console.log(new_canvas.width, new_canvas.height, new_canvas.style.width, new_canvas.style.height);
|
console.log(new_canvas.width, new_canvas.height, new_canvas.style.width, new_canvas.style.height);
|
||||||
canvas_actual_line=new_canvas.height-1;
|
secondary_demod_current_canvas_actual_line=new_canvas.height-1;
|
||||||
$(secondary_demod_canvas_container).append(new_canvas);
|
$(secondary_demod_canvas_container).append(new_canvas);
|
||||||
return new_canvas;
|
return new_canvas;
|
||||||
}
|
}
|
||||||
@ -2302,7 +2302,6 @@ function secondary_demod_stop()
|
|||||||
ws.send("SET secondary_mod=off");
|
ws.send("SET secondary_mod=off");
|
||||||
secondary_demod = false;
|
secondary_demod = false;
|
||||||
secondary_demod_waterfall_queue = [];
|
secondary_demod_waterfall_queue = [];
|
||||||
secondary_demod_remove_canvases();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function secondary_demod_waterfall_add_queue(x)
|
function secondary_demod_waterfall_add_queue(x)
|
||||||
|
Loading…
Reference in New Issue
Block a user