From d9768117e69c09181493e00515a43c8ef1ccc4d8 Mon Sep 17 00:00:00 2001 From: mikeyt120 <38516952+mikeyt120@users.noreply.github.com> Date: Fri, 28 Jun 2019 14:09:06 +1000 Subject: [PATCH] updated uArmFunctions.py Has an extra function called 'goVision(uArm)' that aids in the computer vision version of the naughts and crosses game. --- uArmFunctions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/uArmFunctions.py b/uArmFunctions.py index 33bf5be..41acbc9 100644 --- a/uArmFunctions.py +++ b/uArmFunctions.py @@ -55,6 +55,13 @@ def goHome(uArm): '''Puts the uArm into the home position''' sendGCode(uArm, "G0 X150 Y0 Z0 F20000") #pen up (if not already up) +def goVision(uArm): + '''Puts the uArm into camera vision position''' + sendGCode(uArm, "G0 Z20") #pen up + #sendGCode(uArm, "G0 X150 Y0 Z0 F20000") #pen up (if not already up) + + sendGCode(uArm, "G0 X70 Y90 Z20") #position for best camera view + def drawBoard(uArm): '''Draws the board''' sendGCode(uArm, "G0 X150 Y0 Z10")