diff --git a/controller/python/controller.py b/controller/python/controller.py index abd68bf1896bae933baa03dee2c3828303f8b8a5..27a4bd90d27f5cc5dceaa8c8a5aa6b917c8bdc9b 100644 --- a/controller/python/controller.py +++ b/controller/python/controller.py @@ -1,6 +1,6 @@ import struct from numbers import Real -from typing import Any, Optional +from typing import Optional # Major and minor version of required firmware _REQUIRED_FIRMWARE_VERSION = (0, 4) @@ -144,8 +144,8 @@ class Controller: sense. Return a pair with left and right data.""" return self._read(self.ENCODER_TICKS, 4, "hh") - def get_status(self) -> dict[str, Any]: - """Return a dict with various status fields: + def get_status(self) -> dict[str, bool]: + """Return a dict with status fields: - "moving": True if at least one motor is moving, False otherwise - "automatic": True if the motors are in automatic mode, False otherwise""" (status,) = self._read(self.STATUS, 1, "B")