|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | CalibrationPoint |
| class | SensorCalibrationState |
| class | AutonomousPTCalibrator |
Functions | |
| _default_port () | |
| _default_board_ip () | |
| _default_connectors () | |
| _default_calibration_dir () | |
| main () | |
Variables | |
| level | |
| INFO | |
| format | |
| logger = logging.getLogger(__name__) | |
| bool | _cfg_loaded = True |
| str | PACKET_HEADER_FORMAT = "<BBI" |
| int | PACKET_HEADER_SIZE = 6 |
| str | SENSOR_DATA_PACKET_FORMAT = "<BB" |
| int | SENSOR_DATA_PACKET_SIZE = 2 |
| str | SENSOR_DATA_CHUNK_FORMAT = "<I" |
| int | SENSOR_DATA_CHUNK_SIZE = 4 |
| str | SENSOR_DATAPOINT_FORMAT = "<BI" |
| int | SENSOR_DATAPOINT_SIZE = 5 |
| int | PACKET_TYPE_SENSOR_DATA = 3 |
| int | MAX_PACKET_SIZE = 512 |
| CALIBRATION_DIR = _default_calibration_dir() | |
| parents | |
| True | |
| exist_ok | |
Autonomous PT Calibration System Automatically calibrates PT sensors by listening to raw UDP packets from the DiabloAvionics boards and collecting calibration points at known reference pressures. All board IPs, ports, sensor counts, and calibration paths are read from config/config.toml via config_loader so you only change the config file. Features: - Reads raw board UDP packets (DiabloAvionics protocol) — no external dependencies - Automatic calibration point collection with quality scoring - Reference pressure input (from gauges, regulators, etc.) - Automatic cubic polynomial fitting (psi = A·adc³ + B·adc² + C·adc + D) - R² quality validation with confidence levels - Automatic saving of calibration coefficients (JSON + CSV) - Confidence-based autonomous operation - Live ADC monitoring
|
protected |
Definition at line 63 of file autonomous_pt_calibration.py.
Referenced by autonomous_pt_calibration.AutonomousPTCalibrator.__init__().
|
protected |
Definition at line 85 of file autonomous_pt_calibration.py.
|
protected |
The channels this board samples, from active_connectors.
That list is the config's only statement of which channels exist, and it need
not be contiguous — a board may declare {1, 2, 6} — so callers iterate it
rather than counting it.
Definition at line 71 of file autonomous_pt_calibration.py.
Referenced by autonomous_pt_calibration.AutonomousPTCalibrator.set_reference_all().
|
protected |
Definition at line 57 of file autonomous_pt_calibration.py.
Referenced by autonomous_pt_calibration.AutonomousPTCalibrator.__init__().
| autonomous_pt_calibration.main | ( | ) |
Main entry point — interactive or scripted PT calibration via UDP
Definition at line 617 of file autonomous_pt_calibration.py.
|
protected |
Definition at line 52 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.CALIBRATION_DIR = _default_calibration_dir() |
Definition at line 107 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.exist_ok |
Definition at line 108 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.format |
Definition at line 38 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.INFO |
Definition at line 38 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.level |
Definition at line 38 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.logger = logging.getLogger(__name__) |
Definition at line 40 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.MAX_PACKET_SIZE = 512 |
Definition at line 104 of file autonomous_pt_calibration.py.
| str autonomous_pt_calibration.PACKET_HEADER_FORMAT = "<BBI" |
Definition at line 95 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.PACKET_HEADER_SIZE = 6 |
Definition at line 96 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.PACKET_TYPE_SENSOR_DATA = 3 |
Definition at line 103 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.parents |
Definition at line 108 of file autonomous_pt_calibration.py.
| str autonomous_pt_calibration.SENSOR_DATA_CHUNK_FORMAT = "<I" |
Definition at line 99 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.SENSOR_DATA_CHUNK_SIZE = 4 |
Definition at line 100 of file autonomous_pt_calibration.py.
| str autonomous_pt_calibration.SENSOR_DATA_PACKET_FORMAT = "<BB" |
Definition at line 97 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.SENSOR_DATA_PACKET_SIZE = 2 |
Definition at line 98 of file autonomous_pt_calibration.py.
| str autonomous_pt_calibration.SENSOR_DATAPOINT_FORMAT = "<BI" |
Definition at line 101 of file autonomous_pt_calibration.py.
| int autonomous_pt_calibration.SENSOR_DATAPOINT_SIZE = 5 |
Definition at line 102 of file autonomous_pt_calibration.py.
| autonomous_pt_calibration.True |
Definition at line 108 of file autonomous_pt_calibration.py.