pybricks.robotics: Add GyroDriveBase.

This commit is contained in:
Laurens Valk
2023-04-21 10:42:30 +02:00
committed by laurensvalk
parent 95a12a7386
commit 8bca5eb6e4
6 changed files with 51 additions and 11 deletions
+6
View File
@@ -222,6 +222,12 @@ class DriveBase:
"""
class GyroDriveBase(DriveBase):
"""A robotic vehicle with two powered wheels and an optional support
wheel or caster. It measures the heading using the hub's built-in gyroscope,
which can make turning and driving straight more accurate."""
# HACK: hide from jedi
if TYPE_CHECKING:
del Motor