From 8481f432f9c6329158ee1f0443e4589b78008557 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 12 Oct 2025 17:34:53 +0200 Subject: [PATCH] per gio --- M_1.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 M_1.py diff --git a/M_1.py b/M_1.py new file mode 100644 index 0000000..e7ae908 --- /dev/null +++ b/M_1.py @@ -0,0 +1,24 @@ +from pybricks.hubs import PrimeHub +from pybricks.parameters import Axis, Direction, Port, Stop +from pybricks.pupdevices import Motor +from pybricks.robotics import DriveBase +from pybricks.tools import wait + +import batteria +from assi import A +from robots import cbrobot as robot + +straight_speed = 1000 + +hub = robot.hub +db = robot.db + +mDestra = Motor(Port.A) +mSinistra = Motor(Port.C) + + +# db.straight(1000) + +mSinistra.run_angle(100, 100, then=Stop.NONE, wait=False) + +# mDestra.run_angle(100, 100, then=Stop.NONE, wait=True)