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

Go to the source code of this file.

Classes

class  sense_testing_gui.OTAWorker
class  sense_testing_gui.UDPReceiver
class  sense_testing_gui.SenseTestingGUIWindow

Namespaces

namespace  sense_testing_gui

Functions

List[int] sense_testing_gui.parse_sensor_ids_from_text (str text)
Optional[Tuple[int, int, int]] sense_testing_gui.parse_packet_header (bytes data)
Optional[Tuple[tuple, bytes, int, int, int]] sense_testing_gui.parse_board_heartbeat_packet (bytes data)
Optional[Tuple[dict, List[dict]]] sense_testing_gui.parse_self_test_packet (bytes data)
str sense_testing_gui.board_state_name (int state)
Optional[Tuple[dict, List[dict]]] sense_testing_gui.parse_sensor_data_packet (bytes data)
float sense_testing_gui.code_to_voltage (int code_uint32, float ref_voltage)
Optional[float] sense_testing_gui.k_type_voltage_to_temperature_c (float v_volts)
Optional[float] sense_testing_gui.pt1000_voltage_to_temperature_c (float v_volts, float excitation_ua=1000.0)
Optional[float] sense_testing_gui.code_to_force (int code_uint32, float adc_ref_voltage, float excitation_voltage, float sensitivity_mv_per_v, float pga_gain, float full_scale_force)
str sense_testing_gui.find_pio_command ()
Path sense_testing_gui.compile_firmware (Path project_dir, str env_name, Optional[int] board_id=None)
None sense_testing_gui.upload_firmware_to_esp32 (Path bin_path, str ip, int port, Optional[Callable[[str], None]] progress_cb=None)
bytes sense_testing_gui._make_header (int packet_type)
bytes sense_testing_gui.build_server_heartbeat_packet ()
bytes sense_testing_gui.build_sensor_config_packet (List[int] sensor_ids, bool necessary_for_abort, Optional[str] controller_ip, int reference_voltage=0, int enable_serial_printing=0)
bytes sense_testing_gui.build_header_only_packet (int packet_type)
 sense_testing_gui.main ()

Variables

str sense_testing_gui.LEADERBOARD_JSON = Path(__file__).resolve().parent / "sense_testing_leaderboard.json"
 sense_testing_gui._qt_plugins = os.environ.get("QT_QPA_PLATFORM_PLUGIN_PATH")
list sense_testing_gui._candidates
 sense_testing_gui.reverse
 sense_testing_gui._p
int sense_testing_gui.MAX_PACKET_SIZE = 512
str sense_testing_gui.PACKET_HEADER_FORMAT = "<BBI"
int sense_testing_gui.PACKET_HEADER_SIZE = 6
tuple sense_testing_gui.BOARD_HEARTBEAT_BODY_FORMAT
int sense_testing_gui.BOARD_HEARTBEAT_BODY_SIZE = 35
 sense_testing_gui.PacketType
 sense_testing_gui.BoardState
int sense_testing_gui.DIABLO_COMMS_VERSION = 0
str sense_testing_gui.SENSOR_DATA_PACKET_FORMAT = "<BB"
int sense_testing_gui.SENSOR_DATA_PACKET_SIZE = 2
str sense_testing_gui.SENSOR_DATA_CHUNK_FORMAT = "<I"
int sense_testing_gui.SENSOR_DATA_CHUNK_SIZE = 4
str sense_testing_gui.SENSOR_DATAPOINT_FORMAT = "<BI"
int sense_testing_gui.SENSOR_DATAPOINT_SIZE = 5
int sense_testing_gui.DEFAULT_PORT = 5006
tuple sense_testing_gui.DEFAULT_REF_VOLTAGE
float sense_testing_gui.DEFAULT_WINDOW_SECONDS = 10.0
int sense_testing_gui.MAX_POINTS = 10000
int sense_testing_gui.MAX_DISPLAY_CHANNELS = 10
int sense_testing_gui.UPDATE_INTERVAL_MS = 50
tuple sense_testing_gui.HEARTBEAT_TIMEOUT_SEC
int sense_testing_gui.HEARTBEAT_RATE_WINDOW = 20
int sense_testing_gui.SERVER_HEARTBEAT_INTERVAL_MS = 500
int sense_testing_gui.DEFAULT_SEND_PORT = 5005
str sense_testing_gui.DEFAULT_TARGET_IP = "192.168.2.101"
list sense_testing_gui.SENSOR_COLORS
tuple sense_testing_gui._K_TYPE_INVERSE
float sense_testing_gui.PT1000_R0 = 1000.0
float sense_testing_gui.PT1000_A = 3.9083e-3
float sense_testing_gui.PT1000_B = -5.775e-7
float sense_testing_gui.PT1000_EXCITATION_UA = 1000.0
float sense_testing_gui.ADC32_FULL_SCALE = 2147483648.0