Anpassung fahre_gerade_aus für negative Strecken
Signed-off-by: Harry Kimpel <harrykimpel@hotmail.com>
This commit is contained in:
parent
ce7e95ba17
commit
835b9a69b9
1 changed files with 8 additions and 8 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()
|
||||||
|
|
Loading…
Reference in a new issue