WIP: Fahren mit Regler

This commit is contained in:
Lars Haferkamp 2023-09-27 21:00:25 +02:00
parent 31510f9e21
commit 127137e79f
3 changed files with 253 additions and 9 deletions

View file

@ -83,9 +83,8 @@ iqRobot: iq.IQRobot = iq.IQRobot(hub, LEFT_MOTOR_PORT, RIGHT_MOTOR_PORT, COLOR_S
# Führe Funktionen aus unser Robot Klasse aus:
iqRobot.show('HAPPY')
iqRobot.driveForward_for_sec(2.0)
colorIntensity = iqRobot.getColorIntensity()
print("Farbintensität: " + str(colorIntensity))
iqRobot.fahre_mit_drehung(strecke1=10, grad=90, strecke2=10)
iqRobot.fahre_mit_drehung(strecke1=0, grad=-90, strecke2=10)