summaryrefslogtreecommitdiff
path: root/digital/asserv/tools/test_goto.py
diff options
context:
space:
mode:
authorNicolas Schodet2009-03-03 00:55:03 +0100
committerNicolas Schodet2009-03-03 00:55:03 +0100
commit443ed8a8f04b18297f6b2e9f559b700dbbba7bd9 (patch)
treee9cdb6130b5ea602290ca74b3ea31a0537ac169f /digital/asserv/tools/test_goto.py
parent4d53ce59cdc998471981e78825d85bd4cfe37b50 (diff)
* digital/asserv/tools:
- switched to radians for all interfaces.
Diffstat (limited to 'digital/asserv/tools/test_goto.py')
-rw-r--r--digital/asserv/tools/test_goto.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/digital/asserv/tools/test_goto.py b/digital/asserv/tools/test_goto.py
index 8def90af..097cff69 100644
--- a/digital/asserv/tools/test_goto.py
+++ b/digital/asserv/tools/test_goto.py
@@ -6,6 +6,7 @@ import asserv.init
import proto.popen_io
import serial
import random
+import math
if sys.argv[1] == '!':
io = proto.popen_io.PopenIO (sys.argv[2:])
@@ -18,7 +19,7 @@ for i in xrange (10):
x = random.randrange (2000)
y = random.randrange (1100)
a.goto (x, y)
- a.goto_angle (random.randrange (360))
+ a.goto_angle (math.radians (random.randrange (360)))
a.goto (0, 0)
a.goto_angle (0)
a.close ()