|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self) | |
| set_status (self, text) | |
| closeEvent (self, QtGui.QCloseEvent event) | |
Public Attributes | |
| window_seconds = DEFAULT_WINDOW_SECONDS | |
| console_win = None | |
| bool | autoscale = True |
| float | max_v = 2.5 |
| cmb_port = QtWidgets.QComboBox() | |
| cmb_baud = QtWidgets.QComboBox() | |
| btn_connect = QtWidgets.QPushButton("Connect") | |
| chk_autoscale = QtWidgets.QCheckBox("Autoscale Y") | |
| plot = pg.PlotWidget() | |
| legend = self.plot.addLegend(labelTextSize="10pt") | |
| dict | chk = {} |
| dict | curves = {} |
| lbl_sps = QtWidgets.QLabel("SPS: n/a") | |
| dict | per_ch = {} |
| lbl_status = QtWidgets.QLabel("Idle") | |
| t0_us = None | |
| test_start_time = None | |
| int | sample_count = 0 |
| int | packets_received = 0 |
| dict | t = {ch: deque(maxlen=MAX_POINTS) for ch in range(NUM_CHANNELS)} |
| dict | v = {ch: deque(maxlen=MAX_POINTS) for ch in range(NUM_CHANNELS)} |
| last_sps_time = None | |
| int | last_sps_count = 0 |
| timer = QtCore.QTimer(self) | |
| reader = None | |
| set_status | |
Protected Member Functions | |
| _hline (self) | |
| _refresh_port_list (self) | |
| _toggle_connect (self) | |
| _connect (self, port, baud) | |
| _on_samples (self, samples) | |
| _on_raw_bytes (self, bytes data) | |
| _on_toggle (self) | |
| _update_plot (self) | |
| _open_settings (self) | |
| _open_console (self) | |
| _on_autoscale (self) | |
| _export_csv (self) | |
Protected Attributes | |
| _refresh_port_list | |
| _toggle_connect | |
| _open_settings | |
| _open_console | |
| _export_csv | |
| _on_autoscale | |
| _on_toggle | |
| _update_plot | |
| bool | _plot_needs_update = False |
| _on_samples | |
| _on_raw_bytes | |
| gui.App.__init__ | ( | self | ) |
Definition at line 270 of file gui.py.
References __init__(), and array.resize().
Referenced by __init__().
|
protected |
Definition at line 443 of file gui.py.
References last_sps_count, last_sps_time, packets_received, gui.Reader.packets_received, reader, sample_count, t, t0_us, test_start_time, and v.
Referenced by _toggle_connect().
|
protected |
|
protected |
Definition at line 611 of file gui.py.
References _plot_needs_update, _update_plot, autoscale, and chk_autoscale.
|
protected |
Definition at line 495 of file gui.py.
References console_win.
|
protected |
Handle batch of samples from a packet
Definition at line 467 of file gui.py.
References _plot_needs_update, last_sps_count, last_sps_time, packets_received, gui.Reader.packets_received, sample_count, t, t0_us, and v.
|
protected |
Definition at line 499 of file gui.py.
References _plot_needs_update.
|
protected |
Definition at line 604 of file gui.py.
References console_win.
|
protected |
Definition at line 417 of file gui.py.
References cmb_port, and gui.list_ports().
|
protected |
Definition at line 427 of file gui.py.
References _connect(), btn_connect, cmb_baud, cmb_port, reader, set_status, and stop().
|
protected |
Definition at line 503 of file gui.py.
References _plot_needs_update, autoscale, chk, curves, last_sps_count, last_sps_time, lbl_sps, max, max_v, min, per_ch, plot, sample_count, t, v, and window_seconds.
| gui.App.closeEvent | ( | self, | |
| QtGui.QCloseEvent | event ) |
Definition at line 688 of file gui.py.
References closeEvent(), reader, and stop().
Referenced by closeEvent().
| gui.App.set_status | ( | self, | |
| text ) |
Definition at line 424 of file gui.py.
References lbl_status.
|
protected |
Definition at line 406 of file gui.py.
Referenced by _on_autoscale(), lc_calibration_gui.LCPlotWindow._on_autoscale(), _on_samples(), _on_toggle(), lc_calibration_gui.LCPlotWindow._on_toggle(), _update_plot(), lc_calibration_gui.LCPlotWindow._update_plot(), and lc_calibration_gui.LCPlotWindow.on_sensor_data().
|
protected |
Definition at line 404 of file gui.py.
Referenced by _on_autoscale(), and lc_calibration_gui.LCPlotWindow._on_autoscale().
| bool gui.App.autoscale = True |
Definition at line 277 of file gui.py.
Referenced by _on_autoscale(), lc_calibration_gui.LCPlotWindow._on_autoscale(), _update_plot(), and lc_calibration_gui.LCPlotWindow._update_plot().
| gui.App.btn_connect = QtWidgets.QPushButton("Connect") |
Definition at line 306 of file gui.py.
Referenced by _toggle_connect().
| dict gui.App.chk = {} |
Definition at line 352 of file gui.py.
Referenced by _update_plot(), and lc_calibration_gui.LCPlotWindow._update_plot().
| gui.App.chk_autoscale = QtWidgets.QCheckBox("Autoscale Y") |
Definition at line 322 of file gui.py.
Referenced by _on_autoscale(), and lc_calibration_gui.LCPlotWindow._on_autoscale().
| gui.App.cmb_baud = QtWidgets.QComboBox() |
Definition at line 292 of file gui.py.
Referenced by _toggle_connect().
| gui.App.cmb_port = QtWidgets.QComboBox() |
Definition at line 287 of file gui.py.
Referenced by _refresh_port_list(), and _toggle_connect().
| gui.App.console_win = None |
Definition at line 276 of file gui.py.
Referenced by _on_raw_bytes(), and _open_console().
| dict gui.App.curves = {} |
Definition at line 353 of file gui.py.
Referenced by feedtwin.model.spec.ComponentSpec.__post_init__(), _update_plot(), lc_calibration_gui.LCPlotWindow._update_plot(), actuator_testing_gui.ActuatorTestingWindow.on_channel_toggled(), feedtwin.model.catalog.Part.to_dict(), feedtwin.model.component.ComponentInstance.to_dict(), actuator_testing_gui.ActuatorTestingWindow.update_plots(), and feedtwin.model.spec.ComponentSpec.validate_curves().
| int gui.App.last_sps_count = 0 |
Definition at line 400 of file gui.py.
Referenced by _connect(), _on_samples(), and _update_plot().
| gui.App.last_sps_time = None |
Definition at line 399 of file gui.py.
Referenced by _connect(), _on_samples(), _update_plot(), and combined_gui.SensorPlotWidget.update_statistics().
| gui.App.lbl_sps = QtWidgets.QLabel("SPS: n/a") |
Definition at line 368 of file gui.py.
Referenced by _update_plot(), and lc_calibration_gui.LCPlotWindow.update_statistics().
| gui.App.lbl_status = QtWidgets.QLabel("Idle") |
Definition at line 384 of file gui.py.
Referenced by combined_gui.PWMControlWindow.disarm_all(), combined_gui.PWMControlWindow.execute_now(), set_status(), and combined_gui.PWMControlWindow.update_arm_status().
| gui.App.legend = self.plot.addLegend(labelTextSize="10pt") |
Definition at line 343 of file gui.py.
Referenced by combined_gui.SensorPlotWidget.add_sensor_plot().
| gui.App.max_v = 2.5 |
Definition at line 278 of file gui.py.
Referenced by _update_plot().
| int gui.App.packets_received = 0 |
Definition at line 394 of file gui.py.
Referenced by _connect(), and _on_samples().
| dict gui.App.per_ch = {} |
Definition at line 374 of file gui.py.
Referenced by _update_plot().
| gui.App.plot = pg.PlotWidget() |
Definition at line 335 of file gui.py.
Referenced by _update_plot(), and lc_calibration_gui.LCPlotWindow._update_plot().
| gui.App.reader = None |
Definition at line 409 of file gui.py.
Referenced by _connect(), _toggle_connect(), and closeEvent().
| int gui.App.sample_count = 0 |
Definition at line 393 of file gui.py.
Referenced by _connect(), _on_samples(), _update_plot(), and lc_calibration_gui.LCPlotWindow.on_sensor_data().
| gui.App.set_status |
Definition at line 459 of file gui.py.
Referenced by _toggle_connect().
| dict gui.App.t = {ch: deque(maxlen=MAX_POINTS) for ch in range(NUM_CHANNELS)} |
Definition at line 395 of file gui.py.
Referenced by engine.pipeline.cea_cache.CEAAuxTables._bilinear(), engine.pipeline.cea_cache.CEAAuxTables._build(), feedtwin.session.core.Session._burnout_check(), feedtwin.session.core.Session._check_limits(), _connect(), engine.pipeline.cea_cache.CEAAuxTables._exit(), _export_csv(), lc_calibration_gui.LCPlotWindow._export_csv(), feedtwin.session.core.Session._fire_notes(), feedtwin.session.core.Session._integrate(), engine.pipeline.cea_cache.CEAAuxTables._load(), _on_samples(), feedtwin.session.core.Session._record_solver(), _update_plot(), lc_calibration_gui.LCPlotWindow._update_plot(), engine.layerx.flight.InlineAscent.advance(), feedtwin.session.core.Session.command_state(), lc_calibration_gui.LCPlotWindow.on_sensor_data(), feedtwin.session.core.Session.prime(), and feedtwin.session.burn.BurnTrace.recorder().
| gui.App.t0_us = None |
Definition at line 391 of file gui.py.
Referenced by _connect(), and _on_samples().
| gui.App.test_start_time = None |
Definition at line 392 of file gui.py.
Referenced by _connect(), _export_csv(), and lc_calibration_gui.LCPlotWindow._export_csv().
| dict gui.App.v = {ch: deque(maxlen=MAX_POINTS) for ch in range(NUM_CHANNELS)} |
Definition at line 396 of file gui.py.
Referenced by _connect(), _export_csv(), lc_calibration_gui.LCPlotWindow._export_csv(), engine.layerx.flight.InlineAscent._integrate(), _on_samples(), _update_plot(), lc_calibration_gui.LCPlotWindow._update_plot(), engine.layerx.flight.InlineAscent.held(), lc_calibration_gui.LCPlotWindow.on_sensor_data(), and engine.layerx.flight.InlineAscent.specific_force().
| gui.App.window_seconds = DEFAULT_WINDOW_SECONDS |
Definition at line 275 of file gui.py.
Referenced by sense_testing_gui.SenseTestingGUIWindow._on_add_max_force_to_leaderboard(), sense_testing_gui.SenseTestingGUIWindow._on_window_seconds_changed(), solenoid_characterization_gui.SolenoidCharacterizationWindow._on_window_slider_changed(), _update_plot(), lc_calibration_gui.LCPlotWindow._update_plot(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), pt_multi_gui.PTPlotWindow.show_settings(), combined_gui.SensorPlotWidget.update_buffer_size(), solenoid_characterization_gui.SolenoidCharacterizationWindow.update_plot(), actuator_testing_gui.ActuatorTestingWindow.update_plots(), combined_gui.SensorPlotWidget.update_plots(), and pt_multi_gui.PTPlotWindow.update_plots().