Rückwärsfahren mit Regler #18
2 changed files with 9 additions and 10 deletions
|
@ -106,7 +106,7 @@ class IQRobot:
|
||||||
richtung = 1
|
richtung = 1
|
||||||
if cm < 0:
|
if cm < 0:
|
||||||
richtung = -1
|
richtung = -1
|
||||||
speed = -speed
|
speed = speed * richtung
|
||||||
|
|
||||||
self.linker_motor.set_degrees_counted(0)
|
self.linker_motor.set_degrees_counted(0)
|
||||||
self.bewegungsSensor.reset_yaw_angle()
|
self.bewegungsSensor.reset_yaw_angle()
|
||||||
|
|
1
main.py
1
main.py
|
@ -120,7 +120,6 @@ def augmented_reality():
|
||||||
iqRobot.drehe(-90)
|
iqRobot.drehe(-90)
|
||||||
iqRobot.fahre_gerade_aus(5,20)
|
iqRobot.fahre_gerade_aus(5,20)
|
||||||
|
|
||||||
|
|
||||||
druckmaschine()
|
druckmaschine()
|
||||||
hologram()
|
hologram()
|
||||||
augmented_reality()
|
augmented_reality()
|
||||||
|
|
Loading…
Reference in a new issue