37 lines
871 B
Python
37 lines
871 B
Python
# from pybricks.hubs import InventorHub, 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 robot_class import LazyRobot
|
|
|
|
# from robots import cbrobot as robot
|
|
|
|
# robot = LazyRobot(
|
|
# name="giohub",
|
|
# top_side=A.UP,
|
|
# front_side=A.RIGHT,
|
|
# left_port=Port.B,
|
|
# right_port=Port.A,
|
|
# left_direction=Direction.COUNTERCLOCKWISE,
|
|
# right_direction=Direction.CLOCKWISE,
|
|
# wheel_diameter=49.5,
|
|
# axle_track=88,
|
|
# use_gyro=True,
|
|
# )
|
|
# straight_speed = 1000
|
|
|
|
# hub = robot.hub
|
|
# db = robot.db
|
|
|
|
# mDestra = Motor(Port.A)
|
|
# mSinistra = Motor(Port.C)
|
|
|
|
# db.straight(1000)
|
|
|
|
# mDestra.run_angle(100, 100, then=Stop.NONE, wait=False)
|
|
|
|
# mDestra.run_angle(100, 100, then=Stop.NONE, wait=True)
|