From a287a451f15b261705be2af912c5581efb0630a7 Mon Sep 17 00:00:00 2001 From: leo Date: Sun, 9 Nov 2025 18:03:55 +0100 Subject: [PATCH] run_1 versione 1.0 funzionante --- leo/appunti.txt | 4 ++++ run_01.py | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/leo/appunti.txt b/leo/appunti.txt index cca4fb2..e767baa 100644 --- a/leo/appunti.txt +++ b/leo/appunti.txt @@ -18,3 +18,7 @@ Motor.E == M_Up Right Motor.D == M_Up Left Motor.A == Motor.B == + + + +db.settings(straight_speed; straight_acceleration; turn_rate; turn_acceleration) diff --git a/run_01.py b/run_01.py index e393ed6..0e6e952 100644 --- a/run_01.py +++ b/run_01.py @@ -7,8 +7,16 @@ from assi import A from robot_class import LazyRobot, Robot -def main(robot: LazyRobot): +def main(robot: LazyRobot): # partenza robot a 1 nero e 1 hub = robot.hub 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)