Schneller fahren

This commit is contained in:
Lars Haferkamp 2024-01-10 20:59:57 +01:00
parent 7abd2bbd3f
commit 518f00fa5d

View file

@ -95,7 +95,7 @@ def druckmaschine():
def hologram(): def hologram():
iqRobot.drehe(45) iqRobot.drehe(45)
iqRobot.fahre_gerade_aus(37.5,30) iqRobot.fahre_gerade_aus(37.5,60)
iqRobot.fahre_bis_abstand(28,30,True) iqRobot.fahre_bis_abstand(28,30,True)
print(iqRobot.abstandsSensor.get_distance_cm()) print(iqRobot.abstandsSensor.get_distance_cm())
iqRobot.drehe(45) iqRobot.drehe(45)
@ -106,7 +106,7 @@ def hologram():
def augmented_reality(): def augmented_reality():
iqRobot.drehe(45) iqRobot.drehe(45)
# cm should be greater than real distance as we stop at color intensity # cm should be greater than real distance as we stop at color intensity
iqRobot.fahre_gerade_aus(cm=-50,speed=30, abstand_stop=89) iqRobot.fahre_gerade_aus(cm=-50,speed=50, abstand_stop=86)
iqRobot.drehe(-90) iqRobot.drehe(-90)
iqRobot.fahre_gerade_aus(12,30) iqRobot.fahre_gerade_aus(12,30)
iqRobot.schaufel(-2200) iqRobot.schaufel(-2200)