Merge branch 'main' into treffen-221123
* main: Kleiner Fix, kein self da nicht in einer Klasse Hünchen . Gerade aus Fahr Funktion mit PI Regler Docs Debug entfernt Port gefixt Abstandssensor TEst # Conflicts: # main.py
This commit is contained in:
commit
0fc7e4ac37
3 changed files with 49 additions and 16 deletions
11
main.py
11
main.py
|
@ -79,6 +79,14 @@ iqRobot: iq.IQRobot = iq.IQRobot(hub)
|
|||
# Führe Funktionen aus unser Robot Klasse aus:
|
||||
iqRobot.show('HAPPY')
|
||||
|
||||
def huenchenaufgabe():
|
||||
iqRobot.fahre_gerade_aus(40,60)
|
||||
iqRobot.drehe(-40,True)
|
||||
iqRobot.fahre_gerade_aus(20,60)
|
||||
iqRobot.drehe(-20)
|
||||
iqRobot.fahre_gerade_aus(55,60)
|
||||
iqRobot.heber(10,30)
|
||||
|
||||
def hologram_alt():
|
||||
iqRobot.fahre_gerade_aus(cm=75,speed=80)
|
||||
iqRobot.drehe(45, False)
|
||||
|
@ -87,7 +95,6 @@ def hologram_alt():
|
|||
iqRobot.drehe(-45, False)
|
||||
iqRobot.fahre_gerade_aus(cm=-75,speed=50)
|
||||
|
||||
|
||||
def druckmaschine():
|
||||
iqRobot.fahre_gerade_aus(19,30)
|
||||
iqRobot.drehe(-45)
|
||||
|
@ -116,4 +123,4 @@ def augmented_reality():
|
|||
|
||||
druckmaschine()
|
||||
hologram()
|
||||
augmented_reality()
|
||||
augmented_reality()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue