ui.screens.analog_sensor

Analog sensor calibration UI screens.

Classes

AnalogSensorConfirmResult

Result from AnalogSensorConfirmScreen.

AnalogSensorPositionScreen

Prompt the operator to position the robot at the target location.

AnalogSensorSamplingScreen

Shown while the sensor is being sampled (closed externally via run_with_ui).

AnalogSensorConfirmScreen

Show the captured reference value for operator confirmation.

Module Contents

class ui.screens.analog_sensor.AnalogSensorConfirmResult

Result from AnalogSensorConfirmScreen.

confirmed: bool
class ui.screens.analog_sensor.AnalogSensorPositionScreen(port: int, set_name: str = 'default')

Bases: ui.screen.UIScreen[None]

Prompt the operator to position the robot at the target location.

title = 'Analog Sensor Calibration'
port
set_name = 'default'
build() ui.widgets.Widget

Build the screen layout.

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

async on_press()
class ui.screens.analog_sensor.AnalogSensorSamplingScreen(port: int, duration: float)

Bases: ui.screen.UIScreen[None]

Shown while the sensor is being sampled (closed externally via run_with_ui).

title = 'Analog Sensor Calibration'
port
duration
build() ui.widgets.Widget

Build the screen layout.

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

class ui.screens.analog_sensor.AnalogSensorConfirmScreen(port: int, set_name: str, target_value: float, std: float, sample_count: int)

Bases: ui.screen.UIScreen[AnalogSensorConfirmResult]

Show the captured reference value for operator confirmation.

title = 'Analog Sensor Calibration'
port
set_name
target_value
std
sample_count
build() ui.widgets.Widget

Build the screen layout.

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

async on_confirm()
async on_retry()