STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
combined_gui.py File Reference

Go to the source code of this file.

Classes

class  combined_gui.PacketType
class  combined_gui.ConfigManager
class  combined_gui.UDPReceiver
class  combined_gui.SensorDebugDialog
class  combined_gui.SensorPlotWidget
class  combined_gui.SensorPlotWindow
class  combined_gui.ActuatorControlWidget
class  combined_gui.PWMControlWindow
class  combined_gui.PressureBarWidget
class  combined_gui.TopBarWidget
class  combined_gui.SettingsWidget
class  combined_gui.ActuatorControlWindow
class  combined_gui.CalibrationWindow
class  combined_gui.CombinedMainWindow

Namespaces

namespace  combined_gui

Functions

float combined_gui.actuator_counts_to_volts (int data_u32)
 combined_gui.get_num_actuators ()
tuple[Dict[str, Dict[str, str]], int] combined_gui.load_state_machine_csv (Path csv_path)
Dict[str, Dict[str, bool]] combined_gui.load_state_transitions_csv (Path csv_path)
int combined_gui.get_actuator_id_from_role (str role_name)
 combined_gui.apply_state_from_csv (actuator_widget, str state_name, Dict[str, Dict[str, str]] state_machine)
float combined_gui.calculate_pressure (float adc_code, float PT_A, float PT_B, float PT_C, float PT_D)
Tuple[Dict[int, Tuple[float, float, float, float]], Optional[str]] combined_gui.load_pt_calibration (csv_paths)
Optional[Tuple[int, int, int]] combined_gui.parse_packet_header (bytes data)
Optional[Tuple[dict, List[dict]]] combined_gui.parse_sensor_data_packet (bytes data)
bytes combined_gui.create_actuator_command_packet (List[Tuple[int, int]] commands)
bytes combined_gui.create_pwm_actuator_command_packet (List[Tuple[int, int, float, float]] commands)
 combined_gui.main ()

Variables

 combined_gui._SCRIPT_DIR = Path(__file__).resolve().parent
 combined_gui.PT_CALIBRATION_CSV
 combined_gui._qt_plugins = os.environ.get("QT_QPA_PLATFORM_PLUGIN_PATH")
list combined_gui._candidates
 combined_gui.reverse
 combined_gui._p
 combined_gui.useOpenGL
 combined_gui.True
 combined_gui.antialias
 combined_gui._file_dir
 combined_gui._level1 = os.path.dirname(_file_dir)
 combined_gui._level2 = os.path.dirname(_level1)
 combined_gui._project_root = os.path.dirname(_level2)
 combined_gui._calib_path = os.path.join(_project_root, "scripts", "calibration")
bool combined_gui.ROBUST_CALIBRATION_AVAILABLE = True
int combined_gui.DIABLO_COMMS_VERSION = 0
int combined_gui.MAX_PACKET_SIZE = 512
str combined_gui.DEFAULT_SENSOR_IP = "192.168.2.101"
str combined_gui.DEFAULT_ACTUATOR_IP = "192.168.2.201"
int combined_gui.DEFAULT_DEVICE_PORT = 5005
int combined_gui.DEFAULT_RECEIVE_PORT = 5006
str combined_gui.PACKET_HEADER_FORMAT = "<BBI"
int combined_gui.PACKET_HEADER_SIZE = 6
str combined_gui.ACTUATOR_COMMAND_PACKET_FORMAT = "<B"
int combined_gui.ACTUATOR_COMMAND_PACKET_SIZE = 1
str combined_gui.ACTUATOR_COMMAND_FORMAT = "<BB"
int combined_gui.ACTUATOR_COMMAND_SIZE = 2
str combined_gui.PWM_ACTUATOR_COMMAND_PACKET_FORMAT = "<B"
int combined_gui.PWM_ACTUATOR_COMMAND_PACKET_SIZE = 1
str combined_gui.PWM_ACTUATOR_COMMAND_FORMAT = "<BIff"
int combined_gui.PWM_ACTUATOR_COMMAND_SIZE = 13
str combined_gui.SENSOR_DATA_PACKET_FORMAT = "<BB"
int combined_gui.SENSOR_DATA_PACKET_SIZE = 2
str combined_gui.SENSOR_DATA_CHUNK_FORMAT = "<I"
int combined_gui.SENSOR_DATA_CHUNK_SIZE = 4
str combined_gui.SENSOR_DATAPOINT_FORMAT = "<BI"
int combined_gui.SENSOR_DATAPOINT_SIZE = 5
int combined_gui.ACT_ADC_MAX = 4095
float combined_gui.ACT_ADC_VREF = 3.3
float combined_gui.DEFAULT_WINDOW_SECONDS = 10.0
int combined_gui.MAX_POINTS = 200000
int combined_gui.UPDATE_INTERVAL_MS = 100
int combined_gui.NUM_CONNECTORS = 10
list combined_gui.DEFAULT_ACTUATOR_ROLE_NAMES
list combined_gui.DEFAULT_SENSOR_ROLE_NAMES
dict combined_gui.DEFAULT_ACTUATOR_ABBREV_TO_ROLE
list combined_gui.ACTUATOR_DISPLAY_ORDER_WHEN_ROLES
str combined_gui.ACTUATOR_LABELS_FILE = _SCRIPT_DIR / "actuator_labels.json"
str combined_gui.SENSOR_LABELS_FILE = _SCRIPT_DIR / "sensor_labels.json"
list combined_gui.SENSOR_COLORS
str combined_gui.CONFIG_FILE = _SCRIPT_DIR / "config.json"
str combined_gui._DEFAULT_STATE_MACHINE_CSV = _SCRIPT_DIR / "state_machine_actuators.csv"
str combined_gui._DEFAULT_STATE_TRANSITIONS_CSV = _SCRIPT_DIR / "state_transitions.csv"
 combined_gui.CONFIG = ConfigManager()