22 lines
527 B
Python
22 lines
527 B
Python
from pybricks.hubs import PrimeHub
|
|
from pybricks.parameters import Axis, Direction, Port, Stop
|
|
from pybricks.pupdevices import Motor
|
|
from pybricks.robotics import DriveBase
|
|
|
|
from assi import A
|
|
from robot_class import LazyRobot, Robot
|
|
|
|
|
|
def main(robot: LazyRobot): # partenza robot a 1 nero e 1
|
|
hub = robot.hub
|
|
db = robot.db
|
|
|
|
def db_settingsInizz():
|
|
db.settings(864, 300, 100, 50)
|
|
|
|
db_settingsInizz()
|
|
|
|
db.settings(432, 300, 100, 50)
|
|
db.straight(460)
|
|
db_settingsInizz()
|
|
db.straight(-500)
|