|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Classes | |
| class | CalibrationPoint |
| class | SensorCalibrationState |
| class | AutonomousLCCalibrator |
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 Load Cell (LC) Calibration System Reads raw ADC counts from LC boards via UDP, collects calibration points at known reference forces (lbs), fits polynomials, and saves coefficients. All board IPs, ports, and sensor counts come from config/config.toml. Polynomial model: force_lbs = A·adc³ + B·adc² + C·adc + D Usage: python3 autonomous_lc_calibration.py --interactive python3 autonomous_lc_calibration.py --ref-all 0.0 --collect-time 10
|
protected |
Definition at line 48 of file autonomous_lc_calibration.py.
Referenced by autonomous_lc_calibration.AutonomousLCCalibrator.__init__().
|
protected |
Definition at line 70 of file autonomous_lc_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 56 of file autonomous_lc_calibration.py.
Referenced by autonomous_lc_calibration.AutonomousLCCalibrator.set_reference_all().
|
protected |
Definition at line 44 of file autonomous_lc_calibration.py.
Referenced by autonomous_lc_calibration.AutonomousLCCalibrator.__init__().
| autonomous_lc_calibration.main | ( | ) |
Definition at line 348 of file autonomous_lc_calibration.py.
References main().
Referenced by main().
|
protected |
Definition at line 39 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.CALIBRATION_DIR = _default_calibration_dir() |
Definition at line 91 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.exist_ok |
Definition at line 92 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.format |
Definition at line 25 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.INFO |
Definition at line 25 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.level |
Definition at line 25 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.logger = logging.getLogger(__name__) |
Definition at line 27 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.MAX_PACKET_SIZE = 512 |
Definition at line 89 of file autonomous_lc_calibration.py.
| str autonomous_lc_calibration.PACKET_HEADER_FORMAT = "<BBI" |
Definition at line 80 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.PACKET_HEADER_SIZE = 6 |
Definition at line 81 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.PACKET_TYPE_SENSOR_DATA = 3 |
Definition at line 88 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.parents |
Definition at line 92 of file autonomous_lc_calibration.py.
| str autonomous_lc_calibration.SENSOR_DATA_CHUNK_FORMAT = "<I" |
Definition at line 84 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.SENSOR_DATA_CHUNK_SIZE = 4 |
Definition at line 85 of file autonomous_lc_calibration.py.
| str autonomous_lc_calibration.SENSOR_DATA_PACKET_FORMAT = "<BB" |
Definition at line 82 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.SENSOR_DATA_PACKET_SIZE = 2 |
Definition at line 83 of file autonomous_lc_calibration.py.
| str autonomous_lc_calibration.SENSOR_DATAPOINT_FORMAT = "<BI" |
Definition at line 86 of file autonomous_lc_calibration.py.
| int autonomous_lc_calibration.SENSOR_DATAPOINT_SIZE = 5 |
Definition at line 87 of file autonomous_lc_calibration.py.
| autonomous_lc_calibration.True |
Definition at line 92 of file autonomous_lc_calibration.py.