Add modulation filters algorithm

This commit is contained in:
alessandro90
2018-11-11 19:01:06 +01:00
parent 89f3d39511
commit 3a30c5e3c2
4 changed files with 83 additions and 46 deletions

View File

@@ -46,32 +46,34 @@ class Constants(object):
"RAW": [],
"SC-FDMA": [],}
)
UNKNOWN = "Unknown"
MODULATIONS = ["8VSB",
"AFSK",
"AM",
"BFSK",
"C4FM",
"CDMA",
"COFDM",
"CW",
"FFSK",
"FM",
"FMCW",
"FMOP",
"FSK",
"GFSK",
"GMSK",
"IFK",
"MFSK",
"MSK",
"OFDM",
"OOK",
"PAM",
"PPM",
"PSK",
"QAM",
"TDMA",]
APPLY = _ReadOnlyProperty("Apply")
REMOVE = _ReadOnlyProperty("Remove")
UNKNOWN = _ReadOnlyProperty("N/A")
MODULATIONS = _ReadOnlyProperty(["8VSB",
"AFSK",
"AM",
"BFSK",
"C4FM",
"CDMA",
"COFDM",
"CW",
"FFSK",
"FM",
"FMCW",
"FMOP",
"FSK",
"GFSK",
"GMSK",
"IFK",
"MFSK",
"MSK",
"OFDM",
"OOK",
"PAM",
"PPM",
"PSK",
"QAM",
"TDMA",])
def reset_apply_remove_btn(button):
@@ -79,7 +81,6 @@ def reset_apply_remove_btn(button):
button.setChecked(False)
button.clicked.emit()
def checksum_ok(data, what):
code = hashlib.sha256()
code.update(data)