updated input frequency

This commit is contained in:
dj2ls 2023-01-04 20:47:00 +01:00
parent 53697af6e2
commit d54f3dcb31
3 changed files with 2 additions and 3 deletions

View file

@ -1628,7 +1628,7 @@ ipcRenderer.on('action-update-tnc-state', (event, arg) => {
// https://stackoverflow.com/a/2901298
var freq = arg.frequency.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");
document.getElementById("frequency").innerHTML = freq;
document.getElementById("newFrequency").value = arg.frequency;
//document.getElementById("newFrequency").value = arg.frequency;
// SET MODE
document.getElementById("mode").innerHTML = arg.mode;

View file

@ -1092,7 +1092,7 @@
</button>
<form class="dropdown-menu p-2">
<div class="input-group input-group-sm">
<input type="text" class="form-control" style="max-width: 6rem;" placeholder="0.0" pattern="[0-9]*" id="newFrequency" maxlength="11" aria-label="Input group" aria-describedby="btnGroupAddon">
<input type="text" class="form-control" style="max-width: 6rem;" placeholder="7063000" pattern="[0-9]*" id="newFrequency" maxlength="11" aria-label="Input group" aria-describedby="btnGroupAddon">
<span class="input-group-text">Hz</span>
<button class="btn btn-sm btn-success" id="saveFrequency" type="button" data-bs-placement="bottom" data-bs-toggle="tooltip" data-bs-html="false" title="save frequency"> <i class="bi bi-check-lg" style="font-size: 0.8rem; color: white;"></i> </button>
</div>

View file

@ -896,7 +896,6 @@ class RF:
# only take every tenth data point
static.SCATTER = scatterdata[::10]
def calculate_snr(self, freedv: ctypes.c_void_p) -> float:
"""
Ask codec2 for data about the received signal and calculate