| 
34 | 34 |     "rotator_type": "rotctld",  | 
35 | 35 |     "rotator_host": "localhost",  | 
36 | 36 |     "rotator_port": 4533,  | 
 | 37 | +    "rotator_rangeinhibit": True,  | 
37 | 38 |     "logging_enabled": False,  | 
38 | 39 |     "log_format": "CSV",  | 
39 | 40 |     "log_directory": "",  | 
 | 41 | +    "fft_smoothing": False,  | 
40 | 42 |     "payload_list": json.dumps(horusdemodlib.payloads.HORUS_PAYLOAD_LIST),  | 
41 | 43 |     "custom_field_list": json.dumps({})  | 
42 | 44 | }  | 
@@ -76,7 +78,7 @@ def read_config(widgets):  | 
76 | 78 |     global qt_settings, default_config  | 
77 | 79 | 
 
  | 
78 | 80 |     # This is getting a bit ridiculous, need to re-think this approach.  | 
79 |  | -    OK_VERSIONS = [__version__, '0.3.18', '0.3.17', '0.3.16', '0.3.15', '0.3.14', '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']  | 
 | 81 | +    OK_VERSIONS = [__version__,'0.3.19', '0.3.18', '0.3.17', '0.3.16', '0.3.15', '0.3.14', '0.3.13', '0.3.12', '0.3.11', '0.3.10', '0.3.9', '0.3.8', '0.3.7', '0.3.6', '0.3.5', '0.3.4', '0.3.1', '0.2.1']  | 
80 | 82 | 
 
  | 
81 | 83 |     # Try and read in the version parameter from QSettings  | 
82 | 84 |     if qt_settings.value("version") not in OK_VERSIONS:  | 
@@ -124,12 +126,15 @@ def read_config(widgets):  | 
124 | 126 |         widgets["rotatorTypeSelector"].setCurrentText(default_config["rotator_type"])  | 
125 | 127 |         widgets["rotatorHostEntry"].setText(str(default_config["rotator_host"]))  | 
126 | 128 |         widgets["rotatorPortEntry"].setText(str(default_config["rotator_port"]))  | 
 | 129 | +        widgets["rotatorRangeInhibit"].setChecked(ValueToBool(default_config["rotator_rangeinhibit"]))  | 
127 | 130 | 
 
  | 
128 | 131 |         # Logging Settings  | 
129 | 132 |         widgets["loggingPathEntry"].setText(str(default_config["log_directory"]))  | 
130 | 133 |         widgets["loggingFormatSelector"].setCurrentText(default_config["log_format"])  | 
131 | 134 |         widgets["enableLoggingSelector"].setChecked(ValueToBool(default_config["logging_enabled"]))  | 
132 | 135 | 
 
  | 
 | 136 | +        widgets["fftSmoothingSelector"].setChecked(ValueToBool(default_config["fft_smoothing"]))  | 
 | 137 | + | 
133 | 138 |         if default_config['baud_rate'] != -1:  | 
134 | 139 |             widgets["horusModemRateSelector"].setCurrentText(str(default_config['baud_rate']))  | 
135 | 140 | 
 
  | 
@@ -173,9 +178,11 @@ def save_config(widgets):  | 
173 | 178 |         default_config["rotator_type"] = widgets["rotatorTypeSelector"].currentText()  | 
174 | 179 |         default_config["rotator_host"] = widgets["rotatorHostEntry"].text()  | 
175 | 180 |         default_config["rotator_port"] = int(widgets["rotatorPortEntry"].text())  | 
 | 181 | +        default_config["rotator_rangeinhibit"] = widgets["rotatorRangeInhibit"].isChecked()  | 
176 | 182 |         default_config["logging_enabled"] = widgets["enableLoggingSelector"].isChecked()  | 
177 | 183 |         default_config["log_directory"] = widgets["loggingPathEntry"].text()  | 
178 | 184 |         default_config["log_format"] = widgets["loggingFormatSelector"].currentText()  | 
 | 185 | +        default_config["fft_smoothing"] = widgets["fftSmoothingSelector"].isChecked()  | 
179 | 186 | 
 
  | 
180 | 187 |         default_config["payload_list"] = json.dumps(horusdemodlib.payloads.HORUS_PAYLOAD_LIST)  | 
181 | 188 |         default_config["custom_field_list"] = json.dumps(horusdemodlib.payloads.HORUS_CUSTOM_FIELDS)  | 
 | 
0 commit comments