|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | CalibrationPoint |
| class | SensorCalibrationState |
| class | AutonomousTCCalibrator |
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 Thermocouple (TC) Calibration System Reads raw ADC data from TC boards via UDP, collects calibration points at known reference temperatures, fits polynomials, and saves coefficients for the C++ DAQ bridge. All board IPs, ports, and sensor counts come from config/config.toml. Calibration model: temp_°C = A·adc³ + B·adc² + C·adc + D Usage: python3 autonomous_tc_calibration.py --interactive python3 autonomous_tc_calibration.py --ref-all 25.0 --collect-time 10 python3 autonomous_tc_calibration.py --sensor 1 --temp 100.0 --sensor 2 --temp 200.0
|
protected |
Definition at line 49 of file autonomous_tc_calibration.py.
Referenced by autonomous_tc_calibration.AutonomousTCCalibrator.__init__().
|
protected |
Definition at line 71 of file autonomous_tc_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 57 of file autonomous_tc_calibration.py.
Referenced by autonomous_tc_calibration.AutonomousTCCalibrator.set_reference_all().
|
protected |
Definition at line 45 of file autonomous_tc_calibration.py.
Referenced by autonomous_tc_calibration.AutonomousTCCalibrator.__init__().
| autonomous_tc_calibration.main | ( | ) |
Definition at line 347 of file autonomous_tc_calibration.py.
References main().
Referenced by main().
|
protected |
Definition at line 40 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.CALIBRATION_DIR = _default_calibration_dir() |
Definition at line 92 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.exist_ok |
Definition at line 93 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.format |
Definition at line 26 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.INFO |
Definition at line 26 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.level |
Definition at line 26 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.logger = logging.getLogger(__name__) |
Definition at line 28 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.MAX_PACKET_SIZE = 512 |
Definition at line 90 of file autonomous_tc_calibration.py.
| str autonomous_tc_calibration.PACKET_HEADER_FORMAT = "<BBI" |
Definition at line 81 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.PACKET_HEADER_SIZE = 6 |
Definition at line 82 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.PACKET_TYPE_SENSOR_DATA = 3 |
Definition at line 89 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.parents |
Definition at line 93 of file autonomous_tc_calibration.py.
| str autonomous_tc_calibration.SENSOR_DATA_CHUNK_FORMAT = "<I" |
Definition at line 85 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.SENSOR_DATA_CHUNK_SIZE = 4 |
Definition at line 86 of file autonomous_tc_calibration.py.
| str autonomous_tc_calibration.SENSOR_DATA_PACKET_FORMAT = "<BB" |
Definition at line 83 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.SENSOR_DATA_PACKET_SIZE = 2 |
Definition at line 84 of file autonomous_tc_calibration.py.
| str autonomous_tc_calibration.SENSOR_DATAPOINT_FORMAT = "<BI" |
Definition at line 87 of file autonomous_tc_calibration.py.
| int autonomous_tc_calibration.SENSOR_DATAPOINT_SIZE = 5 |
Definition at line 88 of file autonomous_tc_calibration.py.
| autonomous_tc_calibration.True |
Definition at line 93 of file autonomous_tc_calibration.py.