step.calibration.state¶
Runtime “has distance calibration run yet?” flag + stored-IR application.
These helpers used to live in calibrate_distance. That step (which rewrote
the odometry ticks_to_rad baseline) is gone — distance error is now corrected
on the trim layer by the setup CalibrationGate.
The lightweight gate flag survives here so distance-based drives can keep warning
when no calibration has run, and the gate marks it done when it finalizes.
Exceptions¶
Raised when an operation requires calibration but none has been performed. |
Functions¶
|
Check if distance calibration has been performed. |
|
Mark distance calibration as performed (called by the calibration gate). |
|
Log a warning when distance calibration has not been performed yet. |
|
Reset the calibration flag (for testing). |
|
Apply stored IR thresholds from CalibrationStore to each sensor (used under --no-calibrate). |
Module Contents¶
- exception step.calibration.state.CalibrationRequiredError¶
Bases:
ExceptionRaised when an operation requires calibration but none has been performed.
- step.calibration.state.is_distance_calibrated() bool¶
Check if distance calibration has been performed.
- step.calibration.state.set_distance_calibrated() None¶
Mark distance calibration as performed (called by the calibration gate).