FLL/leo/ruote.py

13 lines
345 B
Python

from pybricks.parameters import Port, Stop
from pybricks.pupdevices import Motor
from pybricks.tools import wait
mDestra = Motor(Port.A)
mSinistra = Motor(Port.B)
mSinistra.run_angle(1000, 360, then=Stop.HOLD, wait=False)
mDestra.run_angle(1000, 360, then=Stop.HOLD, wait=False)
while not (mSinistra.done() and mDestra.done()):
wait(10)