per gio
This commit is contained in:
parent
f5048c4413
commit
149f64c56f
1 changed files with 24 additions and 0 deletions
24
M_1.py
Normal file
24
M_1.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
from pybricks.hubs import PrimeHub
|
||||
from pybricks.parameters import Axis, Direction, Port
|
||||
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)
|
||||
Loading…
Add table
Reference in a new issue