From d385a9eacb2e8580239f101f96356f7ed216dd97 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 8 May 2011 13:02:53 +0200 Subject: digital/io-hub: add clamp moving --- digital/ai/tools/test_simu_control_robospierre.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'digital/ai/tools/test_simu_control_robospierre.py') 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 -- cgit v1.2.3