With current firmware, the JNCRadio, SV4401A, SV6301A devices allows 1001 datapoints (#662)

* With current firmware, these JNCRadio_VNA_3G, SV4401A, SV6301A devices allow 1001 datapoints.

Updated datapoints dropdown to show their respective minimums, the 'typical' 101, device default 501 and maximum 1001 points. Users may choose any other values between min and max not seen in the dropdown list using the custom datapoints option.

These devices now use the factory default 501 datapoints as their initial datapoints value.

* cut-paste typo in sweep_points_min (facepalm)
pull/665/head
t52ta6ek 2023-07-26 07:54:31 +02:00 zatwierdzone przez GitHub
rodzic 21ba0ef665
commit 20c1e4ec7c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
4 zmienionych plików z 11 dodań i 8 usunięć

Wyświetl plik

@ -31,8 +31,9 @@ class JNCRadio_VNA_3G(NanoVNA):
name = "JNCRadio_VNA_3G"
screenwidth = 800
screenheight = 480
valid_datapoints = (101, 201, 301, 401, 501)
sweep_points_max = 501
valid_datapoints = (501, 11, 101, 1001)
sweep_points_min = 11
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)
@ -40,6 +41,7 @@ class JNCRadio_VNA_3G(NanoVNA):
def getScreenshot(self) -> QPixmap:
logger.debug("Capturing screenshot...")
self.serial.timeout=8
if not self.connected():
return QPixmap()
try:

Wyświetl plik

@ -31,9 +31,9 @@ class SV4401A(NanoVNA):
name = "SV4401A"
screenwidth = 1024
screenheight = 600
valid_datapoints = (101, 301, 501)
sweep_points_max = 101
sweep_points_max = 501
valid_datapoints = (501, 101, 1001)
sweep_points_min = 101
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)

Wyświetl plik

@ -31,9 +31,9 @@ class SV6301A(NanoVNA):
name = "SV6301A"
screenwidth = 1024
screenheight = 600
valid_datapoints = (101, 301, 501)
sweep_points_max = 101
sweep_points_max = 501
valid_datapoints = (501, 101, 1001)
sweep_points_min = 101
sweep_points_max = 1001
def __init__(self, iface: Interface):
super().__init__(iface)

Wyświetl plik

@ -152,6 +152,7 @@ class DeviceSettingsWindow(QtWidgets.QWidget):
if "Customizable data points" in features:
self.datapoints.clear()
self.custom_points_Eidt.setValidator(QIntValidator(self.app.vna.sweep_points_min,self.app.vna.sweep_points_max))
cur_dps = self.app.vna.datapoints
for d in sorted(self.app.vna.valid_datapoints):
self.datapoints.addItem(str(d))