|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self, str board_ip) | |
| open_socket (self) | |
| bool | send (self, bytes packet) |
| poll_socket (self) | |
| on_board_heartbeat (self, bytes data, str src_ip) | |
| toggle_heartbeats (self) | |
| send_server_heartbeat (self) | |
| command (self, "ValvePanel" panel, int state) | |
| bool | board_active (self) |
| refresh_status (self) | |
| set_command_label (self) | |
| update_controls (self) | |
| append (self, str text) | |
| closeEvent (self, event) | |
Public Attributes | |
| socket.socket|None | sock = None |
| bool | heartbeats_on = False |
| float | board_last_seen = 0.0 |
| int | board_state = 0 |
| str|None | board_src_ip = None |
| ip_edit = QtWidgets.QLineEdit(board_ip) | |
| follow_ip = QtWidgets.QCheckBox("Follow board's IP") | |
| hb_btn = QtWidgets.QPushButton("Start heartbeats") | |
| toggle_heartbeats | |
| board_label = QtWidgets.QLabel() | |
| list | panels = [ValvePanel(self, aid, sid) for aid, sid in VALVES] |
| log = QtWidgets.QPlainTextEdit() | |
| hb_timer = QtCore.QTimer(self) | |
| send_server_heartbeat | |
| rx_timer = QtCore.QTimer(self) | |
| poll_socket | |
| ui_timer = QtCore.QTimer(self) | |
| refresh_status | |
Definition at line 188 of file ball_valve_gui.py.
| ball_valve_gui.BallValveGui.__init__ | ( | self, | |
| str | board_ip ) |
| ball_valve_gui.BallValveGui.append | ( | self, | |
| str | text ) |
Definition at line 408 of file ball_valve_gui.py.
References anonymous_namespace{idle_e2e.cpp}::World.log, log, and world_t.log.
Referenced by command(), on_board_heartbeat(), open_socket(), send(), and toggle_heartbeats().
| bool ball_valve_gui.BallValveGui.board_active | ( | self | ) |
Definition at line 372 of file ball_valve_gui.py.
References board_last_seen, actuator_testing_gui.ActuatorTestingWindow.board_state, board_state, and time.time().
Referenced by command().
| ball_valve_gui.BallValveGui.closeEvent | ( | self, | |
| event ) |
Definition at line 411 of file ball_valve_gui.py.
References closeEvent(), actuator_testing_gui.SensorReceiver.sock, sock, lc_calibration_gui.UDPReceiver.sock, and pt_multi_gui.UDPReceiver.sock.
Referenced by closeEvent().
| ball_valve_gui.BallValveGui.command | ( | self, | |
| "ValvePanel" | panel, | ||
| int | state ) |
Definition at line 349 of file ball_valve_gui.py.
References append(), board_active(), ball_valve_gui.build_actuator_command(), heartbeats_on, send(), gnss_io_t.send, radio_link::Sx1262Setup.send(), and send_server_heartbeat.
| ball_valve_gui.BallValveGui.on_board_heartbeat | ( | self, | |
| bytes | data, | ||
| str | src_ip ) |
Definition at line 303 of file ball_valve_gui.py.
References append(), board_last_seen, board_src_ip, actuator_testing_gui.ActuatorTestingWindow.board_state, board_state, follow_ip, actuator_testing_gui.ActuatorTestingWindow.ip_edit, ip_edit, ball_valve_gui.parse_board_heartbeat(), and time.time().
Referenced by poll_socket().
| ball_valve_gui.BallValveGui.open_socket | ( | self | ) |
Definition at line 258 of file ball_valve_gui.py.
References append(), rx_timer, actuator_testing_gui.SensorReceiver.sock, sock, lc_calibration_gui.UDPReceiver.sock, pt_multi_gui.UDPReceiver.sock, and start().
| ball_valve_gui.BallValveGui.poll_socket | ( | self | ) |
Definition at line 285 of file ball_valve_gui.py.
References board_src_ip, on_board_heartbeat(), panels, ball_valve_gui.parse_sensor_data(), actuator_testing_gui.SensorReceiver.sock, sock, lc_calibration_gui.UDPReceiver.sock, and pt_multi_gui.UDPReceiver.sock.
| ball_valve_gui.BallValveGui.refresh_status | ( | self | ) |
Definition at line 379 of file ball_valve_gui.py.
References board_label, board_last_seen, actuator_testing_gui.ActuatorTestingWindow.board_state, board_state, panels, and time.time().
| bool ball_valve_gui.BallValveGui.send | ( | self, | |
| bytes | packet ) |
Definition at line 276 of file ball_valve_gui.py.
References append(), actuator_testing_gui.ActuatorTestingWindow.ip_edit, ip_edit, actuator_testing_gui.SensorReceiver.sock, sock, lc_calibration_gui.UDPReceiver.sock, and pt_multi_gui.UDPReceiver.sock.
Referenced by command(), and send_server_heartbeat().
| ball_valve_gui.BallValveGui.send_server_heartbeat | ( | self | ) |
Definition at line 345 of file ball_valve_gui.py.
References ball_valve_gui.build_server_heartbeat(), send(), gnss_io_t.send, and radio_link::Sx1262Setup.send().
| ball_valve_gui.BallValveGui.set_command_label | ( | self | ) |
Definition at line 397 of file ball_valve_gui.py.
References heartbeats_on, and panels.
Referenced by toggle_heartbeats().
| ball_valve_gui.BallValveGui.toggle_heartbeats | ( | self | ) |
Definition at line 327 of file ball_valve_gui.py.
References append(), hb_timer, heartbeats_on, panels, send_server_heartbeat, set_command_label(), ball_valve_gui.ValvePanel.set_command_label(), start(), stop(), update_controls(), and ball_valve_gui.ValvePanel.update_controls().
| ball_valve_gui.BallValveGui.update_controls | ( | self | ) |
Definition at line 401 of file ball_valve_gui.py.
References hb_btn, heartbeats_on, and panels.
Referenced by toggle_heartbeats().
| ball_valve_gui.BallValveGui.board_label = QtWidgets.QLabel() |
Definition at line 216 of file ball_valve_gui.py.
Referenced by refresh_status().
| float ball_valve_gui.BallValveGui.board_last_seen = 0.0 |
Definition at line 194 of file ball_valve_gui.py.
Referenced by board_active(), on_board_heartbeat(), and refresh_status().
| str | None ball_valve_gui.BallValveGui.board_src_ip = None |
Definition at line 196 of file ball_valve_gui.py.
Referenced by on_board_heartbeat(), and poll_socket().
| int ball_valve_gui.BallValveGui.board_state = 0 |
Definition at line 195 of file ball_valve_gui.py.
Referenced by board_simulator.SimulatedBoard._check_for_sensor_config(), sense_testing_gui.SenseTestingGUIWindow._on_board_heartbeat(), board_simulator.SimulatedBoard._run(), board_simulator.SimulatedBoard._send_heartbeat(), board_simulator.SimulatedBoard._step_ball_valve(), sense_testing_gui.SenseTestingGUIWindow._update_plots(), board_active(), on_board_heartbeat(), refresh_status(), and board_simulator.SimulatedBoard.start().
| ball_valve_gui.BallValveGui.follow_ip = QtWidgets.QCheckBox("Follow board's IP") |
Definition at line 200 of file ball_valve_gui.py.
Referenced by on_board_heartbeat().
| ball_valve_gui.BallValveGui.hb_btn = QtWidgets.QPushButton("Start heartbeats") |
Definition at line 206 of file ball_valve_gui.py.
Referenced by update_controls().
| ball_valve_gui.BallValveGui.hb_timer = QtCore.QTimer(self) |
Definition at line 244 of file ball_valve_gui.py.
Referenced by toggle_heartbeats().
| ball_valve_gui.BallValveGui.heartbeats_on = False |
Definition at line 193 of file ball_valve_gui.py.
Referenced by command(), set_command_label(), toggle_heartbeats(), and update_controls().
| ball_valve_gui.BallValveGui.ip_edit = QtWidgets.QLineEdit(board_ip) |
Definition at line 199 of file ball_valve_gui.py.
Referenced by on_board_heartbeat(), and send().
| ball_valve_gui.BallValveGui.log = QtWidgets.QPlainTextEdit() |
Definition at line 229 of file ball_valve_gui.py.
Referenced by append().
| list ball_valve_gui.BallValveGui.panels = [ValvePanel(self, aid, sid) for aid, sid in VALVES] |
Definition at line 217 of file ball_valve_gui.py.
Referenced by poll_socket(), refresh_status(), set_command_label(), toggle_heartbeats(), and update_controls().
| ball_valve_gui.BallValveGui.poll_socket |
Definition at line 247 of file ball_valve_gui.py.
| ball_valve_gui.BallValveGui.refresh_status |
Definition at line 249 of file ball_valve_gui.py.
| ball_valve_gui.BallValveGui.rx_timer = QtCore.QTimer(self) |
Definition at line 246 of file ball_valve_gui.py.
Referenced by open_socket().
| ball_valve_gui.BallValveGui.send_server_heartbeat |
Definition at line 245 of file ball_valve_gui.py.
Referenced by command(), and toggle_heartbeats().
| socket.socket | None ball_valve_gui.BallValveGui.sock = None |
Definition at line 192 of file ball_valve_gui.py.
Referenced by board_simulator.SimulatedBoard._check_for_sensor_config(), board_simulator.SimulatedBoard._send_heartbeat(), board_simulator.SimulatedBoard._send_logs(), board_simulator.SimulatedBoard._send_self_test(), board_simulator.SimulatedBoard._send_sensor_data(), board_simulator.SimulatedBoard._step_ball_valve(), calibration_server.ElodinWriter._write_calibrated(), closeEvent(), calibration_server.ElodinWriter.connect(), open_socket(), poll_socket(), combined_fsw_gui.UDPReceiver.run(), combined_gui.UDPReceiver.run(), imu_calibration_gui.UDPReceiver.run(), sense_testing_gui.UDPReceiver.run(), solenoid_characterization_gui.UDPReceiver.run(), send(), board_simulator.SimulatedBoard.start(), combined_fsw_gui.UDPReceiver.stop(), combined_gui.UDPReceiver.stop(), sense_testing_gui.UDPReceiver.stop(), and solenoid_characterization_gui.UDPReceiver.stop().
| ball_valve_gui.BallValveGui.toggle_heartbeats |
Definition at line 207 of file ball_valve_gui.py.
| ball_valve_gui.BallValveGui.ui_timer = QtCore.QTimer(self) |
Definition at line 248 of file ball_valve_gui.py.