blimputils.interfaces
Abstract sensor interface.
- class blimputils.interfaces.sensor.SensorInterface
Bases:
ABC
Abstract base class for a generic 3-axis sensor.
- abstractmethod get_x() int
Get the raw X-axis sensor value.
- Returns:
The raw X-axis value.
- Return type:
int
- abstractmethod get_y() int
Get the raw Y-axis sensor value.
- Returns:
The raw Y-axis value.
- Return type:
int
- abstractmethod get_z() int
Get the raw Z-axis sensor value.
- Returns:
The raw Z-axis value.
- Return type:
int
- abstractmethod get_xyz() List[int]
Get the raw X, Y, and Z-axis sensor values.
- Returns:
A list containing [X, Y, Z] sensor values.
- Return type:
list[int]