|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self, sensor_widget, actuator_widget, parent=None) | |
| init_ui (self) | |
| load_values (self) | |
| on_pt_calibration_csv_add (self) | |
| on_pt_calibration_csv_remove (self) | |
| on_sim_pressure_toggled (self, checked) | |
| on_time_changed (self, val) | |
| on_y_min_changed (self, val) | |
| on_y_max_changed (self, val) | |
| on_ip_filter_changed (self, text) | |
| on_only_show_pt_with_roles_changed (self, checked) | |
| on_zero_pts (self) | |
| on_clear_pt_zeros (self) | |
| on_adc_bits_changed (self, val) | |
| on_ref_volt_changed (self, val) | |
| on_graph_ma_changed (self, val) | |
| on_display_ma_changed (self, val) | |
| on_act_ip_changed (self, text) | |
| on_act_port_changed (self, val) | |
| on_only_show_actuators_with_roles_changed (self, checked) | |
| on_actuator_role_changed (self, role_name, combo) | |
| on_pt_role_changed (self, role_name, combo) | |
| on_mapping_changed (self, gauge_name, combo) | |
Public Attributes | |
| sensor_widget = sensor_widget | |
| actuator_widget = actuator_widget | |
| dict | gauge_mappings = {"GN2": 0, "ETH": 0, "LOX": 0} |
| demo_chk = QtWidgets.QCheckBox("Demo Mode") | |
| sim_pressure_chk = QtWidgets.QCheckBox("Simulate Chamber Pressure") | |
| on_sim_pressure_toggled | |
| time_slider = QtWidgets.QSlider(QtCore.Qt.Orientation.Horizontal) | |
| time_lbl = QtWidgets.QLabel("10s") | |
| on_time_changed | |
| y_min_spin = QtWidgets.QDoubleSpinBox() | |
| on_y_min_changed | |
| y_max_spin = QtWidgets.QDoubleSpinBox() | |
| on_y_max_changed | |
| ip_filter = QtWidgets.QLineEdit() | |
| on_ip_filter_changed | |
| graph_ma_spin = QtWidgets.QSpinBox() | |
| on_graph_ma_changed | |
| display_ma_spin = QtWidgets.QSpinBox() | |
| on_display_ma_changed | |
| dict | plot_visibility_cbs = {} |
| only_show_pt_with_roles_chk | |
| debug_btn = QtWidgets.QPushButton("Open debug panel…") | |
| zero_pts_btn = QtWidgets.QPushButton("0 PTs") | |
| on_zero_pts | |
| clear_zeros_btn = QtWidgets.QPushButton("Clear Zeros") | |
| on_clear_pt_zeros | |
| adc_bits_spin = QtWidgets.QSpinBox() | |
| on_adc_bits_changed | |
| ref_volt_spin = QtWidgets.QDoubleSpinBox() | |
| on_ref_volt_changed | |
| act_ip = QtWidgets.QLineEdit() | |
| on_act_ip_changed | |
| act_port = QtWidgets.QSpinBox() | |
| on_act_port_changed | |
| only_show_actuators_with_roles_chk | |
| act_scroll = QtWidgets.QScrollArea() | |
| act_scroll_widget = QtWidgets.QWidget() | |
| act_form = QtWidgets.QFormLayout(self.act_scroll_widget) | |
| dict | act_inputs = {} |
| pt_calibration_csv_list = QtWidgets.QListWidget() | |
| on_pt_calibration_csv_add | |
| on_pt_calibration_csv_remove | |
| pt_calibration_error_label = QtWidgets.QLabel() | |
| combo_gn2 = QtWidgets.QComboBox() | |
| combo_eth = QtWidgets.QComboBox() | |
| combo_lox = QtWidgets.QComboBox() | |
| dict | combos |
| gn2_pop_spin = QtWidgets.QDoubleSpinBox() | |
| fuel_pop_spin = QtWidgets.QDoubleSpinBox() | |
| ox_pop_spin = QtWidgets.QDoubleSpinBox() | |
| gn2_thresh_spin = QtWidgets.QDoubleSpinBox() | |
| fuel_thresh_spin = QtWidgets.QDoubleSpinBox() | |
| ox_thresh_spin = QtWidgets.QDoubleSpinBox() | |
| pt_form_widget = QtWidgets.QWidget() | |
| pt_form = QtWidgets.QFormLayout(self.pt_form_widget) | |
| dict | pt_inputs = {} |
Static Public Attributes | |
| mapping_changed = QtCore.pyqtSignal(str, int) | |
Protected Member Functions | |
| _refresh_pt_mapping_combos (self) | |
| _update_pt_calibration_csv_config (self) | |
| _on_threshold_changed (self, str key, float value) | |
| _on_reset_all_data (self) | |
Protected Attributes | |
| _on_reset_all_data | |
Centralized settings configuration widget.
Definition at line 3904 of file combined_gui.py.
| combined_gui.SettingsWidget.__init__ | ( | self, | |
| sensor_widget, | |||
| actuator_widget, | |||
| parent = None ) |
|
protected |
Clear all stored sensor data, plot buffers, CSV history, and event log.
Definition at line 4516 of file combined_gui.py.
References sensor_widget, and time.time().
|
protected |
Definition at line 4477 of file combined_gui.py.
|
protected |
Repopulate GN2/ETH/LOX source combos from current pt_calibration and restore selection from config.
Definition at line 4404 of file combined_gui.py.
References combos, and sensor_widget.
Referenced by _update_pt_calibration_csv_config(), and load_values().
|
protected |
Update config with current list of CSV paths.
Definition at line 4416 of file combined_gui.py.
References _refresh_pt_mapping_combos(), count(), pt_calibration_csv_list, pt_calibration_error_label, and sensor_widget.
Referenced by on_pt_calibration_csv_add(), and on_pt_calibration_csv_remove().
| combined_gui.SettingsWidget.init_ui | ( | self | ) |
Definition at line 3922 of file combined_gui.py.
| combined_gui.SettingsWidget.load_values | ( | self | ) |
Definition at line 4282 of file combined_gui.py.
References _refresh_pt_mapping_combos(), act_inputs, act_ip, act_port, actuator_widget, adc_bits_spin, demo_chk, display_ma_spin, graph_ma_spin, ip_filter, only_show_actuators_with_roles_chk, only_show_pt_with_roles_chk, plot_visibility_cbs, pt_calibration_csv_list, pt_calibration_error_label, pt_inputs, ref_volt_spin, sensor_widget, sim_pressure_chk, time_slider, y_max_spin, and y_min_spin.
| combined_gui.SettingsWidget.on_act_ip_changed | ( | self, | |
| text ) |
Definition at line 4620 of file combined_gui.py.
References actuator_widget.
| combined_gui.SettingsWidget.on_act_port_changed | ( | self, | |
| val ) |
Definition at line 4625 of file combined_gui.py.
References actuator_widget.
| combined_gui.SettingsWidget.on_actuator_role_changed | ( | self, | |
| role_name, | |||
| combo ) |
Definition at line 4637 of file combined_gui.py.
References actuator_widget, and combined_gui.get_num_actuators().
| combined_gui.SettingsWidget.on_adc_bits_changed | ( | self, | |
| val ) |
Definition at line 4600 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_clear_pt_zeros | ( | self | ) |
Clear all PT zero offsets.
Definition at line 4596 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_display_ma_changed | ( | self, | |
| val ) |
Definition at line 4615 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_graph_ma_changed | ( | self, | |
| val ) |
Definition at line 4610 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_ip_filter_changed | ( | self, | |
| text ) |
Definition at line 4579 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_mapping_changed | ( | self, | |
| gauge_name, | |||
| combo ) |
Definition at line 4663 of file combined_gui.py.
References emit(), and mapping_changed.
| combined_gui.SettingsWidget.on_only_show_actuators_with_roles_changed | ( | self, | |
| checked ) |
Definition at line 4630 of file combined_gui.py.
References actuator_widget.
| combined_gui.SettingsWidget.on_only_show_pt_with_roles_changed | ( | self, | |
| checked ) |
Definition at line 4584 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_pt_calibration_csv_add | ( | self | ) |
Add a new CSV file to the list.
Definition at line 4442 of file combined_gui.py.
References _update_pt_calibration_csv_config(), count(), and pt_calibration_csv_list.
| combined_gui.SettingsWidget.on_pt_calibration_csv_remove | ( | self | ) |
Remove selected CSV file from the list.
Definition at line 4469 of file combined_gui.py.
References _update_pt_calibration_csv_config(), and pt_calibration_csv_list.
| combined_gui.SettingsWidget.on_pt_role_changed | ( | self, | |
| role_name, | |||
| combo ) |
Definition at line 4651 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_ref_volt_changed | ( | self, | |
| val ) |
Definition at line 4605 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_sim_pressure_toggled | ( | self, | |
| checked ) |
Definition at line 4493 of file combined_gui.py.
References parent, and path.parent().
| combined_gui.SettingsWidget.on_time_changed | ( | self, | |
| val ) |
Definition at line 4562 of file combined_gui.py.
References sensor_widget, and time_lbl.
| combined_gui.SettingsWidget.on_y_max_changed | ( | self, | |
| val ) |
Definition at line 4574 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_y_min_changed | ( | self, | |
| val ) |
Definition at line 4569 of file combined_gui.py.
References sensor_widget.
| combined_gui.SettingsWidget.on_zero_pts | ( | self | ) |
Capture current PSI readings as zero offsets for all PTs.
Definition at line 4592 of file combined_gui.py.
References sensor_widget.
|
protected |
Definition at line 4076 of file combined_gui.py.
| combined_gui.SettingsWidget.act_form = QtWidgets.QFormLayout(self.act_scroll_widget) |
Definition at line 4115 of file combined_gui.py.
| dict combined_gui.SettingsWidget.act_inputs = {} |
Definition at line 4116 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.act_ip = QtWidgets.QLineEdit() |
Definition at line 4094 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.act_port = QtWidgets.QSpinBox() |
Definition at line 4098 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.act_scroll = QtWidgets.QScrollArea() |
Definition at line 4113 of file combined_gui.py.
| combined_gui.SettingsWidget.act_scroll_widget = QtWidgets.QWidget() |
Definition at line 4114 of file combined_gui.py.
| combined_gui.SettingsWidget.actuator_widget = actuator_widget |
Definition at line 3914 of file combined_gui.py.
Referenced by load_values(), on_act_ip_changed(), on_act_port_changed(), on_actuator_role_changed(), and on_only_show_actuators_with_roles_changed().
| combined_gui.SettingsWidget.adc_bits_spin = QtWidgets.QSpinBox() |
Definition at line 4056 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.clear_zeros_btn = QtWidgets.QPushButton("Clear Zeros") |
Definition at line 4036 of file combined_gui.py.
| combined_gui.SettingsWidget.combo_eth = QtWidgets.QComboBox() |
Definition at line 4179 of file combined_gui.py.
| combined_gui.SettingsWidget.combo_gn2 = QtWidgets.QComboBox() |
Definition at line 4178 of file combined_gui.py.
| combined_gui.SettingsWidget.combo_lox = QtWidgets.QComboBox() |
Definition at line 4180 of file combined_gui.py.
| dict combined_gui.SettingsWidget.combos |
Definition at line 4182 of file combined_gui.py.
Referenced by _refresh_pt_mapping_combos().
| combined_gui.SettingsWidget.debug_btn = QtWidgets.QPushButton("Open debug panel…") |
Definition at line 4021 of file combined_gui.py.
| combined_gui.SettingsWidget.demo_chk = QtWidgets.QCheckBox("Demo Mode") |
Definition at line 3933 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.display_ma_spin = QtWidgets.QSpinBox() |
Definition at line 3976 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.fuel_pop_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4212 of file combined_gui.py.
| combined_gui.SettingsWidget.fuel_thresh_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4236 of file combined_gui.py.
| dict combined_gui.SettingsWidget.gauge_mappings = {"GN2": 0, "ETH": 0, "LOX": 0} |
Definition at line 3917 of file combined_gui.py.
| combined_gui.SettingsWidget.gn2_pop_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4204 of file combined_gui.py.
| combined_gui.SettingsWidget.gn2_thresh_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4228 of file combined_gui.py.
| combined_gui.SettingsWidget.graph_ma_spin = QtWidgets.QSpinBox() |
Definition at line 3971 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.ip_filter = QtWidgets.QLineEdit() |
Definition at line 3961 of file combined_gui.py.
Referenced by load_values().
|
static |
Definition at line 3909 of file combined_gui.py.
Referenced by on_mapping_changed().
| combined_gui.SettingsWidget.on_act_ip_changed |
Definition at line 4095 of file combined_gui.py.
| combined_gui.SettingsWidget.on_act_port_changed |
Definition at line 4100 of file combined_gui.py.
| combined_gui.SettingsWidget.on_adc_bits_changed |
Definition at line 4058 of file combined_gui.py.
| combined_gui.SettingsWidget.on_clear_pt_zeros |
Definition at line 4044 of file combined_gui.py.
| combined_gui.SettingsWidget.on_display_ma_changed |
Definition at line 3979 of file combined_gui.py.
| combined_gui.SettingsWidget.on_graph_ma_changed |
Definition at line 3974 of file combined_gui.py.
| combined_gui.SettingsWidget.on_ip_filter_changed |
Definition at line 3962 of file combined_gui.py.
| combined_gui.SettingsWidget.on_pt_calibration_csv_add |
Definition at line 4157 of file combined_gui.py.
| combined_gui.SettingsWidget.on_pt_calibration_csv_remove |
Definition at line 4159 of file combined_gui.py.
| combined_gui.SettingsWidget.on_ref_volt_changed |
Definition at line 4064 of file combined_gui.py.
| combined_gui.SettingsWidget.on_sim_pressure_toggled |
Definition at line 3941 of file combined_gui.py.
| combined_gui.SettingsWidget.on_time_changed |
Definition at line 3947 of file combined_gui.py.
| combined_gui.SettingsWidget.on_y_max_changed |
Definition at line 3958 of file combined_gui.py.
| combined_gui.SettingsWidget.on_y_min_changed |
Definition at line 3953 of file combined_gui.py.
| combined_gui.SettingsWidget.on_zero_pts |
Definition at line 4035 of file combined_gui.py.
| combined_gui.SettingsWidget.only_show_actuators_with_roles_chk |
Definition at line 4104 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.only_show_pt_with_roles_chk |
Definition at line 4014 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.ox_pop_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4220 of file combined_gui.py.
| combined_gui.SettingsWidget.ox_thresh_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4244 of file combined_gui.py.
| dict combined_gui.SettingsWidget.plot_visibility_cbs = {} |
Definition at line 3997 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.pt_calibration_csv_list = QtWidgets.QListWidget() |
Definition at line 4151 of file combined_gui.py.
Referenced by _update_pt_calibration_csv_config(), load_values(), on_pt_calibration_csv_add(), and on_pt_calibration_csv_remove().
| combined_gui.SettingsWidget.pt_calibration_error_label = QtWidgets.QLabel() |
Definition at line 4165 of file combined_gui.py.
Referenced by _update_pt_calibration_csv_config(), and load_values().
| combined_gui.SettingsWidget.pt_form = QtWidgets.QFormLayout(self.pt_form_widget) |
Definition at line 4258 of file combined_gui.py.
| combined_gui.SettingsWidget.pt_form_widget = QtWidgets.QWidget() |
Definition at line 4257 of file combined_gui.py.
| dict combined_gui.SettingsWidget.pt_inputs = {} |
Definition at line 4259 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.ref_volt_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 4061 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.sensor_widget = sensor_widget |
Definition at line 3913 of file combined_gui.py.
Referenced by _on_reset_all_data(), combined_gui.CalibrationWindow._print_debug_keys(), _refresh_pt_mapping_combos(), _update_pt_calibration_csv_config(), load_values(), on_adc_bits_changed(), on_clear_pt_zeros(), on_display_ma_changed(), on_graph_ma_changed(), on_ip_filter_changed(), on_only_show_pt_with_roles_changed(), on_pt_role_changed(), on_ref_volt_changed(), on_time_changed(), on_y_max_changed(), on_y_min_changed(), on_zero_pts(), combined_gui.CalibrationWindow.perform_zero_point_calibration(), combined_gui.CalibrationWindow.record_calibration_point(), and combined_gui.CalibrationWindow.update_adc_displays().
| combined_gui.SettingsWidget.sim_pressure_chk = QtWidgets.QCheckBox("Simulate Chamber Pressure") |
Definition at line 3937 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.time_lbl = QtWidgets.QLabel("10s") |
Definition at line 3946 of file combined_gui.py.
Referenced by on_time_changed().
| combined_gui.SettingsWidget.time_slider = QtWidgets.QSlider(QtCore.Qt.Orientation.Horizontal) |
Definition at line 3944 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.y_max_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 3956 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.y_min_spin = QtWidgets.QDoubleSpinBox() |
Definition at line 3951 of file combined_gui.py.
Referenced by load_values().
| combined_gui.SettingsWidget.zero_pts_btn = QtWidgets.QPushButton("0 PTs") |
Definition at line 4027 of file combined_gui.py.