summaryrefslogtreecommitdiffhomepage
path: root/digital/asserv/tools/asserv
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-07 22:39:46 +0200
committerNicolas Schodet2009-05-07 22:39:46 +0200
commite5955adc9c33cee7d2fdda723fb02a2af5e612be (patch)
tree55f63d8ea3ae235d09b15d75fea685bedac85c20 /digital/asserv/tools/asserv
parent362824bd00aad8e470baceef83f1c7b24dec6656 (diff)
* digital/asserv:
- added forward go to the wall. - use defines for contacts.
Diffstat (limited to 'digital/asserv/tools/asserv')
-rw-r--r--digital/asserv/tools/asserv/asserv.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/digital/asserv/tools/asserv/asserv.py b/digital/asserv/tools/asserv/asserv.py
index 5c7830c6..a8b5c753 100644
--- a/digital/asserv/tools/asserv/asserv.py
+++ b/digital/asserv/tools/asserv/asserv.py
@@ -246,6 +246,12 @@ class Proto:
self._angle_f16 (a), self.mseq)
self.wait (self.finished, auto = True)
+ def ftw (self, backward = True):
+ """Go to the wall."""
+ self.mseq += 1
+ self.proto.send ('f', 'BB', backward and 1 or 0, self.mseq)
+ self.wait (self.finished, auto = True)
+
def set_simu_pos (self, x, y, a):
"""Set simulated position."""
self.proto.send ('h', 'chhh', 'X', int (round (x)), int (round (y)),