STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
combined_gui.PWMControlWindow Class Reference
Inheritance diagram for combined_gui.PWMControlWindow:
[legend]
Collaboration diagram for combined_gui.PWMControlWindow:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

combined_gui.PWMControlWindow.__init__ ( self,
parent_window )

Definition at line 2769 of file combined_gui.py.

References __init__(), and array.resize().

Referenced by __init__().

Member Function Documentation

◆ consume_arms()

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.

◆ disarm_all()

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.

◆ execute_now()

combined_gui.PWMControlWindow.execute_now ( self,
actuator_id )

◆ get_armed_commands()

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.

◆ init_ui()

combined_gui.PWMControlWindow.init_ui ( self)

Definition at line 2780 of file combined_gui.py.

◆ update_arm_status()

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.

Member Data Documentation

◆ active_arms

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().

◆ actuator_rows

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().

◆ disarm_all

combined_gui.PWMControlWindow.disarm_all

Definition at line 2879 of file combined_gui.py.

◆ hide

combined_gui.PWMControlWindow.hide

Definition at line 2883 of file combined_gui.py.

◆ lbl_status

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().

◆ parent_window

combined_gui.PWMControlWindow.parent_window = parent_window

Definition at line 2773 of file combined_gui.py.

Referenced by execute_now().

◆ scroll_layout

combined_gui.PWMControlWindow.scroll_layout = QtWidgets.QVBoxLayout(scroll_content)

Definition at line 2792 of file combined_gui.py.


The documentation for this class was generated from the following file: