24 lines
517 B
Python
24 lines
517 B
Python
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)
|