run_1 versione 1.0 funzionante

This commit is contained in:
leo 2025-11-09 18:03:55 +01:00
parent 9deacee07c
commit a287a451f1
2 changed files with 14 additions and 2 deletions

View file

@ -18,3 +18,7 @@ Motor.E == M_Up Right
Motor.D == M_Up Left Motor.D == M_Up Left
Motor.A == Motor.A ==
Motor.B == Motor.B ==
db.settings(straight_speed; straight_acceleration; turn_rate; turn_acceleration)

View file

@ -7,8 +7,16 @@ from assi import A
from robot_class import LazyRobot, Robot from robot_class import LazyRobot, Robot
def main(robot: LazyRobot): def main(robot: LazyRobot): # partenza robot a 1 nero e 1
hub = robot.hub hub = robot.hub
db = robot.db db = robot.db
db.settings() 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)