mirror of
https://github.com/ha7ilm/openwebrx.git
synced 2025-12-06 04:12:00 +01:00
Added cfg.fft_max_seen
This commit is contained in:
parent
fbfccf26a6
commit
7c0afcd270
|
|
@ -66,6 +66,7 @@ sdrhu_public_listing = False
|
||||||
dsp_plugin="csdr"
|
dsp_plugin="csdr"
|
||||||
fft_fps=9
|
fft_fps=9
|
||||||
fft_size=4096
|
fft_size=4096
|
||||||
|
|
||||||
#samp_rate = 2048000
|
#samp_rate = 2048000
|
||||||
samp_rate = 250000
|
samp_rate = 250000
|
||||||
|
|
||||||
|
|
@ -112,5 +113,7 @@ client_audio_buffer_size = 5
|
||||||
start_freq = center_freq
|
start_freq = center_freq
|
||||||
start_mod = "nfm" #nfm, am, lsb, usb, cw
|
start_mod = "nfm" #nfm, am, lsb, usb, cw
|
||||||
|
|
||||||
|
fft_max_seen=0 # N*200 pixels vertically. Set 0 to never clear on-screen history.
|
||||||
|
|
||||||
iq_server_port = 4951
|
iq_server_port = 4951
|
||||||
# (if ncat is not available on your system, rtl_mus will be used, thus you will have to set the same port as "my_listening_port" in config_rtl.py as well)
|
# (if ncat is not available on your system, rtl_mus will be used, thus you will have to set the same port as "my_listening_port" in config_rtl.py as well)
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
var audio_buffering_fill_to=%[AUDIO_BUFSIZE];
|
var audio_buffering_fill_to=%[AUDIO_BUFSIZE];
|
||||||
var starting_mod = "%[START_MOD]";
|
var starting_mod = "%[START_MOD]";
|
||||||
var starting_offset_frequency = %[START_OFFSET_FREQ];
|
var starting_offset_frequency = %[START_OFFSET_FREQ];
|
||||||
|
var fft_max_seen = %[FFT_MAX_SEEN];
|
||||||
</script>
|
</script>
|
||||||
<script src="sdr.js"></script>
|
<script src="sdr.js"></script>
|
||||||
<script src="openwebrx.js"></script>
|
<script src="openwebrx.js"></script>
|
||||||
|
|
|
||||||
|
|
@ -1564,6 +1564,7 @@ function add_canvas()
|
||||||
new_canvas.addEventListener("mousedown", canvas_mousedown, false);
|
new_canvas.addEventListener("mousedown", canvas_mousedown, false);
|
||||||
new_canvas.addEventListener("wheel",canvas_mousewheel, false);
|
new_canvas.addEventListener("wheel",canvas_mousewheel, false);
|
||||||
canvases.push(new_canvas);
|
canvases.push(new_canvas);
|
||||||
|
if(fft_max_seen && canvases.length>fft_max_seen) canvas_container.removeChild(canvases.shift());
|
||||||
}
|
}
|
||||||
|
|
||||||
function init_canvas_container()
|
function init_canvas_container()
|
||||||
|
|
|
||||||
|
|
@ -433,8 +433,6 @@ class WebRXHandler(BaseHTTPRequestHandler):
|
||||||
if comm_time_counter % 16 == 0:
|
if comm_time_counter % 16 == 0:
|
||||||
myclient.last_comm_time=time.time()
|
myclient.last_comm_time=time.time()
|
||||||
|
|
||||||
print myclient.last_comm_time, comm_time_counter
|
|
||||||
|
|
||||||
# ========= process commands =========
|
# ========= process commands =========
|
||||||
while True:
|
while True:
|
||||||
rdata=rxws.recv(self, False)
|
rdata=rxws.recv(self, False)
|
||||||
|
|
@ -550,6 +548,7 @@ class WebRXHandler(BaseHTTPRequestHandler):
|
||||||
("%[RX_DEVICE]",cfg.receiver_device),
|
("%[RX_DEVICE]",cfg.receiver_device),
|
||||||
("%[AUDIO_BUFSIZE]",str(cfg.client_audio_buffer_size)),
|
("%[AUDIO_BUFSIZE]",str(cfg.client_audio_buffer_size)),
|
||||||
("%[START_OFFSET_FREQ]",str(cfg.start_freq-cfg.center_freq)),
|
("%[START_OFFSET_FREQ]",str(cfg.start_freq-cfg.center_freq)),
|
||||||
|
("%[FFT_MAX_SEEN]",str(cfg.fft_max_seen)),
|
||||||
("%[START_MOD]",cfg.start_mod)
|
("%[START_MOD]",cfg.start_mod)
|
||||||
)
|
)
|
||||||
for rule in replace_dictionary:
|
for rule in replace_dictionary:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue