|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self, int port=DEFAULT_PORT, str bind_address="0.0.0.0") | |
| str | pt_label (self, int sensor_id) |
| init_ui (self) | |
| start_receiver (self) | |
| on_sensor_data (self, dict header, List[dict] chunks) | |
| update_plots (self) | |
| update_statistics (self) | |
| save_csv (self) | |
| show_settings (self) | |
| closeEvent (self, e) | |
Public Attributes | |
| port = port | |
| bind_address = bind_address | |
| window_seconds = DEFAULT_WINDOW_SECONDS | |
| dict | sensor_data = {} |
| dict | sensor_plots = {} |
| dict | plot_enabled = {i: True for i in range(NUM_PTS)} |
| stats_start_time = time.time() | |
| receiver = None | |
| update_timer = QtCore.QTimer() | |
| update_plots | |
| stats_timer = QtCore.QTimer() | |
| update_statistics | |
| status_label = QtWidgets.QLabel("Starting...") | |
| show_settings | |
| save_csv | |
| plot_widget = pg.GraphicsLayoutWidget() | |
| packets_label = QtWidgets.QLabel("Packets: 0") | |
| pps_label = QtWidgets.QLabel("Packets/sec: 0.0") | |
| bytes_label = QtWidgets.QLabel("Bytes: 0") | |
| bps_label = QtWidgets.QLabel("Bytes/sec: 0.0") | |
| dict | pt_toggles = {} |
| dict | pt_voltage_labels = {} |
| plot_item = self.plot_widget.addPlot(title="PT Voltages") | |
| legend = self.plot_item.legend | |
| on_sensor_data | |
Protected Member Functions | |
| _on_plot_toggle (self, int idx, state) | |
Definition at line 268 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.__init__ | ( | self, | |
| int | port = DEFAULT_PORT, | ||
| str | bind_address = "0.0.0.0" ) |
|
protected |
Definition at line 387 of file pt_multi_gui.py.
References plot_enabled.
| pt_multi_gui.PTPlotWindow.closeEvent | ( | self, | |
| e ) |
Definition at line 509 of file pt_multi_gui.py.
References anonymous_namespace{idle_e2e.cpp}::World.receiver, lc_calibration_gui.LCPlotWindow.receiver, receiver, and stop().
| pt_multi_gui.PTPlotWindow.init_ui | ( | self | ) |
Definition at line 291 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.on_sensor_data | ( | self, | |
| dict | header, | ||
| List[dict] | chunks ) |
Definition at line 396 of file pt_multi_gui.py.
References sensor_data, lc_calibration_gui.LCPlotWindow.stats_start_time, stats_start_time, and time.time().
| str pt_multi_gui.PTPlotWindow.pt_label | ( | self, | |
| int | sensor_id ) |
Definition at line 288 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.save_csv | ( | self | ) |
Save all PT timestamp and voltage data to a CSV file.
Definition at line 448 of file pt_multi_gui.py.
References sensor_data, lc_calibration_gui.LCPlotWindow.status_label, and status_label.
| pt_multi_gui.PTPlotWindow.show_settings | ( | self | ) |
Definition at line 484 of file pt_multi_gui.py.
References gui.App.window_seconds, lc_calibration_gui.LCPlotWindow.window_seconds, and window_seconds.
| pt_multi_gui.PTPlotWindow.start_receiver | ( | self | ) |
Definition at line 390 of file pt_multi_gui.py.
References lc_calibration_gui.LCPlotWindow.bind_address, lc_calibration_gui.UDPReceiver.bind_address, bind_address, pt_multi_gui.UDPReceiver.bind_address, emmc_log_t.port, gui.Reader.port, idle_t.port, lc_calibration_gui.LCPlotWindow.port, lc_calibration_gui.UDPReceiver.port, port, pt_multi_gui.UDPReceiver.port, self_test_t.port, StarOTA::Config.port, anonymous_namespace{idle_e2e.cpp}::World.receiver, lc_calibration_gui.LCPlotWindow.receiver, and receiver.
| pt_multi_gui.PTPlotWindow.update_plots | ( | self | ) |
Definition at line 404 of file pt_multi_gui.py.
References pt_multi_gui.calculate_pressure(), plot_enabled, plot_item, pt_voltage_labels, sensor_data, sensor_plots, lc_calibration_gui.LCPlotWindow.stats_start_time, stats_start_time, time.time(), gui.App.window_seconds, lc_calibration_gui.LCPlotWindow.window_seconds, and window_seconds.
Referenced by smart_calibration_gui.SmartCalibrationGUI.update_gui().
| pt_multi_gui.PTPlotWindow.update_statistics | ( | self | ) |
Definition at line 431 of file pt_multi_gui.py.
References bps_label, bytes_label, packets_label, pps_label, anonymous_namespace{idle_e2e.cpp}::World.receiver, lc_calibration_gui.LCPlotWindow.receiver, and receiver.
Referenced by smart_calibration_gui.SmartCalibrationGUI.update_gui().
| pt_multi_gui.PTPlotWindow.bind_address = bind_address |
Definition at line 272 of file pt_multi_gui.py.
Referenced by actuator_testing_gui.SensorReceiver.run(), combined_fsw_gui.UDPReceiver.run(), combined_gui.UDPReceiver.run(), sense_testing_gui.UDPReceiver.run(), solenoid_characterization_gui.UDPReceiver.run(), and start_receiver().
| pt_multi_gui.PTPlotWindow.bps_label = QtWidgets.QLabel("Bytes/sec: 0.0") |
Definition at line 318 of file pt_multi_gui.py.
Referenced by update_statistics().
| pt_multi_gui.PTPlotWindow.bytes_label = QtWidgets.QLabel("Bytes: 0") |
Definition at line 317 of file pt_multi_gui.py.
Referenced by update_statistics().
| pt_multi_gui.PTPlotWindow.legend = self.plot_item.legend |
Definition at line 369 of file pt_multi_gui.py.
Referenced by combined_gui.SensorPlotWidget.add_sensor_plot().
| pt_multi_gui.PTPlotWindow.on_sensor_data |
Definition at line 392 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.packets_label = QtWidgets.QLabel("Packets: 0") |
Definition at line 315 of file pt_multi_gui.py.
Referenced by update_statistics().
| dict pt_multi_gui.PTPlotWindow.plot_enabled = {i: True for i in range(NUM_PTS)} |
Definition at line 276 of file pt_multi_gui.py.
Referenced by sense_testing_gui.SenseTestingGUIWindow._on_add_max_force_to_leaderboard(), sense_testing_gui.SenseTestingGUIWindow._on_channel_toggled(), combined_gui.SensorPlotWidget._on_plot_toggle(), _on_plot_toggle(), sense_testing_gui.SenseTestingGUIWindow._on_sensor_data(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), combined_gui.SensorPlotWidget.add_sensor_plot(), actuator_testing_gui.ActuatorTestingWindow.on_channel_toggled(), actuator_testing_gui.ActuatorTestingWindow.update_plots(), combined_gui.SensorPlotWidget.update_plots(), and update_plots().
| pt_multi_gui.PTPlotWindow.plot_item = self.plot_widget.addPlot(title="PT Voltages") |
Definition at line 352 of file pt_multi_gui.py.
Referenced by solenoid_characterization_gui.SolenoidCharacterizationWindow._add_event_line(), combined_gui.SensorPlotWidget.add_sensor_plot(), solenoid_characterization_gui.SolenoidCharacterizationWindow.update_plot(), combined_gui.SensorPlotWidget.update_plots(), and update_plots().
| pt_multi_gui.PTPlotWindow.plot_widget = pg.GraphicsLayoutWidget() |
Definition at line 310 of file pt_multi_gui.py.
Referenced by solenoid_characterization_gui.FullPlotWindow._draw_event_lines(), solenoid_characterization_gui.FullPlotWindow._mouse_moved(), sense_testing_gui.SenseTestingGUIWindow._on_sensor_data(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), solenoid_characterization_gui.FullPlotWindow.on_reset_view(), actuator_testing_gui.ActuatorTestingWindow.on_show_current_toggled(), solenoid_characterization_gui.FullPlotWindow.on_toggle_mode(), and combined_gui.SensorDebugDialog.refresh().
| pt_multi_gui.PTPlotWindow.port = port |
Definition at line 271 of file pt_multi_gui.py.
Referenced by calibration_server.ElodinWriter.connect(), feedtwin.comps.manifold.ManifoldBranch.diagnostics(), feedtwin.comps.manifold.ManifoldBranch.pressure_drop(), actuator_testing_gui.SensorReceiver.run(), calibration_orchestrator.UDPSensorReceiver.run(), combined_fsw_gui.UDPReceiver.run(), combined_gui.UDPReceiver.run(), imu_calibration_gui.UDPReceiver.run(), sense_testing_gui.UDPReceiver.run(), solenoid_characterization_gui.UDPReceiver.run(), start_receiver(), and feedtwin.comps.manifold.ManifoldBranch.static_head().
| pt_multi_gui.PTPlotWindow.pps_label = QtWidgets.QLabel("Packets/sec: 0.0") |
Definition at line 316 of file pt_multi_gui.py.
Referenced by update_statistics().
| dict pt_multi_gui.PTPlotWindow.pt_toggles = {} |
Definition at line 332 of file pt_multi_gui.py.
| dict pt_multi_gui.PTPlotWindow.pt_voltage_labels = {} |
Definition at line 333 of file pt_multi_gui.py.
Referenced by update_plots().
| pt_multi_gui.PTPlotWindow.receiver = None |
Definition at line 278 of file pt_multi_gui.py.
Referenced by calibration_orchestrator.CalibrationOrchestrator._drain_queue(), combined_gui.SensorPlotWidget._send_demo_packet(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), actuator_testing_gui.ActuatorTestingWindow.closeEvent(), closeEvent(), sense_testing_gui.SenseTestingGUIWindow.closeEvent(), calibration_orchestrator.CalibrationOrchestrator.start_receiver(), start_receiver(), calibration_orchestrator.CalibrationOrchestrator.stop(), combined_gui.SensorPlotWidget.update_statistics(), and update_statistics().
| pt_multi_gui.PTPlotWindow.save_csv |
Definition at line 306 of file pt_multi_gui.py.
| dict pt_multi_gui.PTPlotWindow.sensor_data = {} |
Definition at line 274 of file pt_multi_gui.py.
Referenced by combined_gui.SensorPlotWidget._clear_all_sensor_deques(), sense_testing_gui.SenseTestingGUIWindow._on_add_max_force_to_leaderboard(), sense_testing_gui.SenseTestingGUIWindow._on_sensor_data(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), combined_gui.SensorPlotWidget.init_connector_plots(), combined_gui.SensorPlotWidget.on_sensor_data(), on_sensor_data(), solenoid_characterization_gui.SolenoidCharacterizationWindow.on_sensor_data(), save_csv(), and update_plots().
| dict pt_multi_gui.PTPlotWindow.sensor_plots = {} |
Definition at line 275 of file pt_multi_gui.py.
Referenced by sense_testing_gui.SenseTestingGUIWindow._on_channel_toggled(), sense_testing_gui.SenseTestingGUIWindow._on_sensor_data(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), combined_gui.SensorPlotWidget.add_sensor_plot(), combined_gui.SensorPlotWidget.update_plot_legend(), combined_gui.SensorPlotWidget.update_plots(), and update_plots().
| pt_multi_gui.PTPlotWindow.show_settings |
Definition at line 303 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.stats_start_time = time.time() |
Definition at line 277 of file pt_multi_gui.py.
Referenced by sense_testing_gui.SenseTestingGUIWindow._on_add_max_force_to_leaderboard(), sense_testing_gui.SenseTestingGUIWindow._on_sensor_data(), combined_gui.SensorPlotWidget._send_demo_packet(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), solenoid_characterization_gui.SolenoidCharacterizationWindow.get_current_board_time(), combined_gui.SensorPlotWidget.on_sensor_data(), on_sensor_data(), solenoid_characterization_gui.SolenoidCharacterizationWindow.update_plot(), combined_gui.SensorPlotWidget.update_plots(), and update_plots().
| pt_multi_gui.PTPlotWindow.stats_timer = QtCore.QTimer() |
Definition at line 284 of file pt_multi_gui.py.
| pt_multi_gui.PTPlotWindow.status_label = QtWidgets.QLabel("Starting...") |
Definition at line 298 of file pt_multi_gui.py.
Referenced by combined_gui.SensorPlotWidget._apply_demo_mode(), sense_testing_gui.SenseTestingGUIWindow._on_add_max_force_to_leaderboard(), solenoid_characterization_gui.SolenoidCharacterizationWindow._on_receive_ip_changed(), solenoid_characterization_gui.SolenoidCharacterizationWindow._on_send_ip_changed(), actuator_testing_gui.ActuatorTestingWindow._send_minimal_actuator_config(), actuator_testing_gui.ActuatorTestingWindow._send_server_heartbeat_once(), combined_gui.CalibrationWindow.fit_calibration(), actuator_testing_gui.ActuatorTestingWindow.on_actuator_toggled(), solenoid_characterization_gui.SolenoidCharacterizationWindow.on_pwm_go_clicked(), combined_gui.SensorPlotWidget.on_status_update(), solenoid_characterization_gui.SolenoidCharacterizationWindow.on_status_update(), combined_gui.CalibrationWindow.perform_zero_point_calibration(), combined_gui.CalibrationWindow.record_calibration_point(), and save_csv().
| pt_multi_gui.PTPlotWindow.update_plots |
Definition at line 282 of file pt_multi_gui.py.
Referenced by actuator_testing_gui.ActuatorTestingWindow.on_show_current_toggled(), combined_gui.SensorPlotWidget.reload_pt_calibration(), and smart_calibration_gui.SmartCalibrationGUI.update_gui().
| pt_multi_gui.PTPlotWindow.update_statistics |
Definition at line 285 of file pt_multi_gui.py.
Referenced by combined_gui.SensorPlotWidget.reload_pt_calibration(), and smart_calibration_gui.SmartCalibrationGUI.update_gui().
| pt_multi_gui.PTPlotWindow.update_timer = QtCore.QTimer() |
Definition at line 281 of file pt_multi_gui.py.
Referenced by actuator_testing_gui.ActuatorTestingWindow.closeEvent(), and sense_testing_gui.SenseTestingGUIWindow.closeEvent().
| pt_multi_gui.PTPlotWindow.window_seconds = DEFAULT_WINDOW_SECONDS |
Definition at line 273 of file pt_multi_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(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), 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 update_plots().