run_1 versione 1.0 funzionante
This commit is contained in:
parent
9deacee07c
commit
a287a451f1
2 changed files with 14 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
12
run_01.py
12
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue