diff --git a/main.py b/main.py index 682b717..296fcf8 100644 --- a/main.py +++ b/main.py @@ -74,17 +74,14 @@ dh auch an die Funktionen im importierten Code übergeben werde hub = PrimeHub() # Initialisiere Robot Klasse mit unseren Funktionen -iqRobot: iq.IQRobot = iq.IQRobot(hub, typ=iq.BRICKIES_BOT_2) +iqRobot: iq.IQRobot = iq.IQRobot(hub, typ=iq.BRICKIES_BOT) # Führe Funktionen aus unser Robot Klasse aus: iqRobot.show('HAPPY') +iqRobot.fahre_mit_drehung(strecke1=10, grad=90, strecke2=10) +iqRobot.fahre_mit_drehung(strecke1=0, grad=-90, strecke2=10) + + + -def hologram_aufgabe1(): - iqRobot.fahre_gerade_aus(cm=75,speed=80) - iqRobot.drehe(45, False) - iqRobot.fahre_gerade_aus(cm=14,speed=70) - iqRobot.fahre_gerade_aus(cm=-13,speed=50) - iqRobot.drehe(-45, False) - iqRobot.fahre_gerade_aus(cm=-75,speed=50) -hologram_aufgabe1()