step.calibration.sensors.ir_confirm_screen

Classes

IRConfirmScreen

Confirm IR sensor calibration results.

Module Contents

class step.calibration.sensors.ir_confirm_screen.IRConfirmScreen(black_threshold: float, white_threshold: float, collected_values: list[float] | None = None)

Bases: raccoon.ui.UIScreen[step.calibration.sensors.dataclasses.IRConfirmResult]

Confirm IR sensor calibration results.

Shows black/white thresholds and collected values.

title = 'IR Sensor Calibration'
black_threshold
white_threshold
collected_values = []
property is_good: bool
build() → raccoon.ui.Widget

Build the screen layout.

Called on every render. Return a Widget tree describing what to display.

async on_black_change(value: float)
async on_white_change(value: float)
async on_retry()
async on_confirm()