diff --git a/robot_class.py b/robot_class.py index f7da00b..b0be63b 100644 --- a/robot_class.py +++ b/robot_class.py @@ -112,6 +112,8 @@ class LazyRobot: left: "Motor" right: "Motor" db: "DriveBase" + extra_L: "Motor" + extra_E: "Motor" # stato interno del proxy _params: "dict[str, object]" diff --git a/run_02.py b/run_02.py index 279ae0a..1c43c60 100644 --- a/run_02.py +++ b/run_02.py @@ -11,8 +11,8 @@ def main(robot: LazyRobot): hub = robot.hub db = robot.db - msu_R = robot.extra_R - msu_L = robot.extra_L + msu_R: Motor = robot.extra_R + msu_L: Motor = robot.extra_L db.settings(864, 300, 100, 50)