summaryrefslogtreecommitdiffhomepage
path: root/digital/ai/tools
diff options
context:
space:
mode:
authorNicolas Schodet2011-05-08 13:02:53 +0200
committerNicolas Schodet2011-05-08 15:59:47 +0200
commitd385a9eacb2e8580239f101f96356f7ed216dd97 (patch)
treedd2396453b98f774302c05ff738d3c5be5fddc96 /digital/ai/tools
parent3eaac809b39d20731b7325618676fe678cf23b6c (diff)
digital/io-hub: add clamp moving
Diffstat (limited to 'digital/ai/tools')
-rw-r--r--digital/ai/tools/test_simu_control_robospierre.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/digital/ai/tools/test_simu_control_robospierre.py b/digital/ai/tools/test_simu_control_robospierre.py
index 5300918a..b1cccf4b 100644
--- a/digital/ai/tools/test_simu_control_robospierre.py
+++ b/digital/ai/tools/test_simu_control_robospierre.py
@@ -62,6 +62,13 @@ class TestSimuControl (TestSimu):
text = 'Rotation ccw', padx = 0, pady = 0,
command = self.rotation_ccw_command)
self.rotation_ccw_button.pack ()
+ self.clamp_pos_scale = Scale (self.control_frame, orient = HORIZONTAL,
+ from_ = 0, to = 6)
+ self.clamp_pos_scale.pack ()
+ self.clamp_move_button = Button (self.control_frame,
+ text = 'Move clamp', padx = 0, pady = 0,
+ command = self.clamp_move_command)
+ self.clamp_move_button.pack ()
self.table_view.bind ('<1>', self.move)
self.table_view.bind ('<3>', self.orient)
@@ -94,6 +101,9 @@ class TestSimuControl (TestSimu):
def rotation_ccw_command (self):
self.mimot.speed_pos ('a1', -self.ROTATION_STROKE / 2)
+ def clamp_move_command (self):
+ self.io.clamp_move (self.clamp_pos_scale.get ())
+
def change_color (self, *dummy):
pass