Adding UI for the tuning step selection.
This commit is contained in:
parent
e3780f6aea
commit
26c12e1e38
@ -667,6 +667,14 @@ img.openwebrx-mirror-img
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.openwebrx-panel-listbox
|
||||
{
|
||||
position: relative;
|
||||
top: 0px;
|
||||
width: 95px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.openwebrx-panel-slider
|
||||
{
|
||||
position: relative;
|
||||
@ -861,6 +869,10 @@ img.openwebrx-mirror-img
|
||||
height: 27px;
|
||||
}
|
||||
|
||||
#openwebrx-tuning-step-listbox {
|
||||
font-size: 10pt;
|
||||
}
|
||||
|
||||
#openwebrx-cursor-blink
|
||||
{
|
||||
animation: cursor-blink 1s infinite;
|
||||
|
@ -206,6 +206,22 @@
|
||||
<svg viewBox="0 0 80 80"><use xlink:href="static/gfx/svg-defs.svg#noise-reduce"></use></svg>
|
||||
</div>
|
||||
<input title="Noise reduction level" disabled id="openwebrx-panel-nr" class="openwebrx-panel-slider" type="range" min="-10" max="10" value="0" step="1" onchange="updateNR()" oninput="updateNR()">
|
||||
<div title="Tuning step" class="openwebrx-button openwebrx-slider-button">
|
||||
<svg viewBox="0 0 80 80"><use xlink:href="static/gfx/svg-defs.svg#disabled"></use></svg>
|
||||
</div>
|
||||
<select id="openwebrx-tuning-step-listbox" class="openwebrx-panel-listbox" onchange="tuning_step_changed();">
|
||||
<option value="1"></option>
|
||||
<option value="100">100Hz</option>
|
||||
<option value="500">500Hz</option>
|
||||
<option value="1000">1kHz</option>
|
||||
<option value="2500">2.5kHz</option>
|
||||
<option value="3000">3kHz</option>
|
||||
<option value="5000">5kHz</option>
|
||||
<option value="6000">6kHz</option>
|
||||
<option value="10000">10kHz</option>
|
||||
<option value="12000">12kHz</option>
|
||||
<option value="50000">50kHz</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="openwebrx-panel-line">
|
||||
<div class="openwebrx-button openwebrx-square-button openwebrx-zoom-button" onclick="zoomInOneStep();" title="Zoom in one step"><svg viewBox="0 0 80 80"><use xlink:href="static/gfx/svg-defs.svg#zoom-in"></use></svg></div>
|
||||
|
@ -834,8 +834,10 @@ function on_ws_recv(evt) {
|
||||
if ('tuning_precision' in config)
|
||||
$('#openwebrx-panel-receiver').demodulatorPanel().setTuningPrecision(config['tuning_precision']);
|
||||
|
||||
if ('tuning_step' in config)
|
||||
if ('tuning_step' in config) {
|
||||
tuning_step = config['tuning_step'];
|
||||
$('#openwebrx-tuning-step-listbox').val(tuning_step);
|
||||
}
|
||||
|
||||
break;
|
||||
case "secondary_config":
|
||||
@ -1624,6 +1626,10 @@ function sdr_profile_changed() {
|
||||
ws.send(JSON.stringify({type: "selectprofile", params: {profile: value}}));
|
||||
}
|
||||
|
||||
function tuning_step_changed() {
|
||||
tuning_step = parseInt($('#openwebrx-tuning-step-listbox').val());
|
||||
}
|
||||
|
||||
function nr_changed() {
|
||||
ws.send(JSON.stringify({
|
||||
"type": "connectionproperties",
|
||||
|
Loading…
Reference in New Issue
Block a user