WIP: Fahren mit Regler
This commit is contained in:
parent
31510f9e21
commit
127137e79f
3 changed files with 253 additions and 9 deletions
5
main.py
5
main.py
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue