jacdac.distance

Submodules

Package Contents

Classes

DistanceClient

A sensor that determines the distance of an object without any physical contact involved.

class jacdac.distance.DistanceClient(bus: jacdac.bus.Bus, role: str, *, missing_distance_value: Optional[float] = None)

Bases: jacdac.bus.SensorClient

A sensor that determines the distance of an object without any physical contact involved. Implements a client for the Distance service.

property distance Optional[float]

Current distance from the object, _: m

property distance_error Optional[float]

(Optional) Absolute error on the reading value., _: m

property min_range Optional[float]

(Optional) Minimum measurable distance, _: m

property max_range Optional[float]

(Optional) Maximum measurable distance, _: m

property variant Optional[jacdac.distance.constants.DistanceVariant]

(Optional) Determines the type of sensor used.,