Skip to content

Commit

Permalink
Update example.py
Browse files Browse the repository at this point in the history
  • Loading branch information
supertick authored Sep 13, 2021
1 parent 5d3e7f3 commit 7b5b632
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -73,4 +73,4 @@ def onJoystickInput(data):
dexarm1.set_workorigin1()


print('example script loaded')
print('example script loaded')

0 comments on commit 7b5b632

Please sign in to comment.