|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Public Member Functions | |
| __init__ (self, parent_window) | |
| init_ui (self) | |
| execute_now (self, actuator_id) | |
| update_arm_status (self, actuator_id, checked) | |
| disarm_all (self) | |
| List[Tuple[int, int, float, float]] | get_armed_commands (self) |
| consume_arms (self) | |
Public Attributes | |
| parent_window = parent_window | |
| dict | active_arms = {} |
| scroll_layout = QtWidgets.QVBoxLayout(scroll_content) | |
| dict | actuator_rows = {} |
| lbl_status = QtWidgets.QLabel("Ready") | |
| disarm_all | |
| hide | |
Dedicated window for detailed actuator control (PWM). Allows setting frequency, duty cycle, duration, and arming commands for the next state transition.
Definition at line 2763 of file combined_gui.py.
| combined_gui.PWMControlWindow.__init__ | ( | self, | |
| parent_window ) |
Definition at line 2769 of file combined_gui.py.
References __init__(), and array.resize().
Referenced by __init__().
| combined_gui.PWMControlWindow.consume_arms | ( | self | ) |
Clear all arms after execution (update UI).
Definition at line 2949 of file combined_gui.py.
References active_arms, and actuator_rows.
| combined_gui.PWMControlWindow.disarm_all | ( | self | ) |
Uncheck all arm checkboxes.
Definition at line 2930 of file combined_gui.py.
References active_arms, actuator_rows, lbl_status, gui.App.lbl_status, and lc_calibration_gui.LCPlotWindow.lbl_status.
| combined_gui.PWMControlWindow.execute_now | ( | self, | |
| actuator_id ) |
Send PWM command immediately.
Definition at line 2888 of file combined_gui.py.
References actuator_rows, combined_gui.create_pwm_actuator_command_packet(), lbl_status, gui.App.lbl_status, lc_calibration_gui.LCPlotWindow.lbl_status, and parent_window.
| List[Tuple[int, int, float, float]] combined_gui.PWMControlWindow.get_armed_commands | ( | self | ) |
Return list of armed commands to be sent on state transition. Also clears the arms (consumes them) if that's the desired behavior. Re-reading user requirement: 'wait till the next state begins'. Usually one-shot. Let's consume them (uncheck boxes) after retrieving.
Definition at line 2939 of file combined_gui.py.
References active_arms.
| combined_gui.PWMControlWindow.init_ui | ( | self | ) |
Definition at line 2780 of file combined_gui.py.
| combined_gui.PWMControlWindow.update_arm_status | ( | self, | |
| actuator_id, | |||
| checked ) |
Update the armed status dict based on checkbox.
Definition at line 2914 of file combined_gui.py.
References active_arms, actuator_rows, lbl_status, gui.App.lbl_status, and lc_calibration_gui.LCPlotWindow.lbl_status.
| dict combined_gui.PWMControlWindow.active_arms = {} |
Definition at line 2776 of file combined_gui.py.
Referenced by consume_arms(), disarm_all(), get_armed_commands(), and update_arm_status().
| dict combined_gui.PWMControlWindow.actuator_rows = {} |
Definition at line 2794 of file combined_gui.py.
Referenced by consume_arms(), disarm_all(), execute_now(), and update_arm_status().
| combined_gui.PWMControlWindow.disarm_all |
Definition at line 2879 of file combined_gui.py.
| combined_gui.PWMControlWindow.hide |
Definition at line 2883 of file combined_gui.py.
| combined_gui.PWMControlWindow.lbl_status = QtWidgets.QLabel("Ready") |
Definition at line 2870 of file combined_gui.py.
Referenced by disarm_all(), execute_now(), and update_arm_status().
| combined_gui.PWMControlWindow.parent_window = parent_window |
Definition at line 2773 of file combined_gui.py.
Referenced by execute_now().
| combined_gui.PWMControlWindow.scroll_layout = QtWidgets.QVBoxLayout(scroll_content) |
Definition at line 2792 of file combined_gui.py.