From 38aa82a1a03efd53933957fece2e19567afbe6bd Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 12 May 2012 14:43:44 +0200 Subject: digital/asserv, digital/mimot: add blocking simulation --- digital/ai/tools/test_simu_control_guybrush.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'digital/ai/tools') diff --git a/digital/ai/tools/test_simu_control_guybrush.py b/digital/ai/tools/test_simu_control_guybrush.py index 146ad04a..e895bf39 100644 --- a/digital/ai/tools/test_simu_control_guybrush.py +++ b/digital/ai/tools/test_simu_control_guybrush.py @@ -52,6 +52,10 @@ class TestSimuControl (TestSimu): fill = 'y') Button (self.control_frame, text = 'FSM step', padx = 0, pady = 0, command = self.fsm_debug).pack () + Button (self.control_frame, text = 'Asserv block', padx = 0, pady = 0, + command = self.asserv_block).pack () + Button (self.control_frame, text = 'Clamp block', padx = 0, pady = 0, + command = self.clamp_block).pack () def out_button (name, toggle): def command (): self.io.output (toggle, 'toggle') @@ -107,6 +111,12 @@ class TestSimuControl (TestSimu): def fsm_debug (self): self.io.fsm_debug () + def asserv_block (self): + self.asserv.block () + + def clamp_block (self): + self.mimot.block ('a0') + def move (self, ev): pos = self.table_view.screen_coord ((ev.x, ev.y)) if self.goto_var.get (): -- cgit v1.2.3