step.calibration.calibrate_wfl_dsl

Auto-generated step builders and DSL functions — DO NOT EDIT.

Source: calibrate_wfl.py

Classes

CalibrateWaitForLightBuilder

Builder for CalibrateWaitForLight. Auto-generated — do not edit.

Functions

calibrate_wait_for_light([sensor])

Calibrate a wait-for-light sensor via interactive measurement.

Module Contents

class step.calibration.calibrate_wfl_dsl.CalibrateWaitForLightBuilder

Bases: raccoon.step.step_builder.StepBuilder

Builder for CalibrateWaitForLight. Auto-generated — do not edit.

sensor(value: raccoon.hal.AnalogSensor)
step.calibration.calibrate_wfl_dsl.calibrate_wait_for_light(sensor: raccoon.hal.AnalogSensor = _UNSET)

Calibrate a wait-for-light sensor via interactive measurement.

Guides the operator through a two-step measurement flow: first cover the sensor (dark reading), then expose it to the start lamp (light reading). The midpoint threshold is computed and stored so the wait_for_light_legacy step can detect the lamp signal.

The operator can retry measurements if the values look wrong before confirming the calibration.

Parameters:

sensor – The AnalogSensor instance to calibrate.

Returns:

A CalibrateWaitForLightBuilder (chainable via .sensor(), .on_anomaly(), .skip_timing()).

Example:

from raccoon.step.calibration import calibrate_wait_for_light

calibrate_wait_for_light(robot.defs.wait_for_light_sensor)