Merge pull request 'Anpassung fahre_gerade_aus für negative Strecken' (#17) from treffen-291123 into main
Reviewed-on: #17
This commit is contained in:
commit
be67475d91
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