Merge pull request #198 from DJ2LS/fix_tnc_issue188_189

This commit is contained in:
DJ2LS 2022-05-20 15:03:58 +02:00 committed by GitHub
commit fa7fe909a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 347 additions and 256 deletions

View file

@ -1,6 +1,6 @@
{
"name": "FreeDATA",
"version": "0.4.0-alpha.8",
"version": "0.4.0-alpha.9",
"description": "FreeDATA ",
"main": "main.js",
"scripts": {

View file

@ -511,8 +511,9 @@ update_chat = function(obj) {
`;
var controlarea_receive = '';
}
} catch {
} catch (err) {
console.log("error with database parsing...")
console.log(err)
}
// CALLSIGN LIST
if (!(document.getElementById('chat-' + dxcallsign + '-list'))) {

File diff suppressed because it is too large Load diff

View file

@ -620,8 +620,8 @@ class RF():
snr = round(modem_stats_snr, 1)
structlog.get_logger("structlog").info("[MDM] calculate_snr: ", snr=snr)
# print(snr)
static.SNR = np.clip(snr, 0, 255) # limit to max value of 255
# static.SNR = np.clip(snr, 0, 255) # limit to max value of 255
static.SNR = np.clip(snr, -128, 128) # limit to max value of -128/128 as a possible fix of #188
return static.SNR
except Exception as e:
structlog.get_logger("structlog").error(f"[MDM] calculate_snr: Exception: {e}")