From 7b5b632cf705eed5624de0e139f17001af0862a1 Mon Sep 17 00:00:00 2001 From: GroG Date: Mon, 13 Sep 2021 11:14:30 -0700 Subject: [PATCH] Update example.py --- example.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example.py b/example.py index bf94de1..19fe06e 100644 --- a/example.py +++ b/example.py @@ -9,7 +9,7 @@ dexarmPort2 = 'COM4' # joystick map -joy_move_to = "C" # "Num 3" +joy_move_to = "Num 3" # "Num 3" joy_exec_file = "Num 9" joy_test1 = "Num 1" joy_disconnect = "Num 5" @@ -40,8 +40,8 @@ def onJoystickInput(data): if (data.value == 1): print(joy_move_to, "was pressed its value is", data.value) # dexarm1.read_test1() - # dexarm1.move_to1(50, 300, 0) - dexarm1.read_Gcode1() + dexarm1.move_to1(50, 300, 0) + # dexarm1.read_Gcode1() print('moved dexarm1 to 50, 300, 0') elif (data.id == "Num 9"): print("script example.py", data.value) @@ -73,4 +73,4 @@ def onJoystickInput(data): dexarm1.set_workorigin1() -print('example script loaded') \ No newline at end of file +print('example script loaded')