libstp.step.calibration.calibrate_wfl

Wait-for-light sensor calibration step using the new UI library.

Classes

WFLCalibrationResult

Result of wait-for-light sensor calibration.

CalibrateWaitForLight

Step for calibrating a wait-for-light sensor.

Functions

calibrate_wait_for_light(→ CalibrateWaitForLight)

Create a wait-for-light calibration step.

Module Contents

class libstp.step.calibration.calibrate_wfl.WFLCalibrationResult

Result of wait-for-light sensor calibration.

light_off: float
light_on: float
threshold: float
class libstp.step.calibration.calibrate_wfl.CalibrateWaitForLight(sensor: libstp.hal.AnalogSensor)

Bases: libstp.ui.step.UIStep

Step for calibrating a wait-for-light sensor.

sensor
calibration_result: WFLCalibrationResult | None = None
libstp.step.calibration.calibrate_wfl.calibrate_wait_for_light(sensor: libstp.hal.AnalogSensor) CalibrateWaitForLight

Create a wait-for-light calibration step.

Parameters:

sensor – The AnalogSensor to calibrate

Returns:

CalibrateWaitForLight step instance