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

Commit 78e010f

Browse files
ds
1 parent b592833 commit 78e010f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

raspberrypi/daughter_cards/wheeledbase.py

+1
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ def goto_stop(self, x, y,sensors, theta=None, direction=None, finalangle=None, l
345345
rPos=self.get_position()
346346
radiusRobot=370
347347
ang=rPos[2]%(2*math.pi)
348+
print(ang,theta)
348349
#fait en sorte que |ang-theta|<pi pr trouver le sens du robot
349350
if(theta-ang>math.pi):
350351
theta-=2*math.pi

raspberrypi/tests/wbTest.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
print("Sensors:",sensors)
3333

3434
wheeledbase.start_match()
35-
wheeledbase.goto_stop(0,0, sensors,finalangle=-math.pi/2)
35+
wheeledbase.goto_stop(0,0, sensors,theta=-math.pi/2)
3636
time.sleep(1)
37-
wheeledbase.goto_stop(0,0, sensors,finalangle=0)
37+
wheeledbase.goto_stop(0,0, sensors,theta=0)
3838
while 1:
3939
print(wheeledbase.get_position(),sensors.get_all_sensors())

0 commit comments

Comments
 (0)