From 5a0b1fbaf7f66dd70aeb33b22c5e943e41ae8704 Mon Sep 17 00:00:00 2001 From: Michael Soukup Date: Mon, 4 Aug 2014 04:25:39 +0200 Subject: [PATCH] Made some notes for tomorrow --- testcontroller.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/testcontroller.py b/testcontroller.py index de7e4ba..37be22a 100755 --- a/testcontroller.py +++ b/testcontroller.py @@ -50,13 +50,32 @@ def test_movec_hax(controller): time.sleep(1) dummy = raw_input('Press any key to continue...') +def test_movec_hax2(controller): + controller.movec_hax(config.R_MIN, config.TABLE_EDGE_RIGHT, config.Z_MIN) + print 'Right edge.' + dummy = raw_input('Press any key to continue...') + + controller.movec_hax(config.R_MIN, 0, config.Z_MIN+0.3) + print 'Middle.' + time.sleep(1) + dummy = raw_input('Press any key to continue...') + + # NOTE: current R_MIN+0.1=0.7 is where the tooltip is at the edge + controller.movec_hax(config.R_MIN+0.1, config.TABLE_EDGE_LEFT, config.Z_MIN+0.1) + print 'Left edge.' + time.sleep(1) + dummy = raw_input('Press any key to continue...') + + if __name__ == '__main__': controller = None try: controller = DemoController(config) #check_edges(controller) - test_movec_hax(controller) + test_movec_hax2(controller) + + # NEXT: test radial params and arbitrary paths. except Exception, e: print e