Skip to content
This repository was archived by the owner on Oct 29, 2024. It is now read-only.

Commit 95e61c4

Browse files
Update wheeledbase.py
1 parent 78e010f commit 95e61c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

raspberrypi/daughter_cards/wheeledbase.py

+2
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ def goto_stop(self, x, y,sensors, theta=None, direction=None, finalangle=None, l
342342

343343
# Get the setpoint orientation
344344
if theta is not None:
345+
if(theta<0):
346+
theta+=2*math.pi
345347
rPos=self.get_position()
346348
radiusRobot=370
347349
ang=rPos[2]%(2*math.pi)

0 commit comments

Comments
 (0)