MCPcopy Create free account
hub / github.com/Makerfabs/PICO_Merchanical_Hand_Driver / test

Function test

Arm6axis/arm_6axis.py:58–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 return pos
57
58def test():
59 PIN_LIST = [0, 1, 2, 3, 4, 5]
60 DIR_LIST = [0, 0, 0, 1, 0, 0]
61
62 arm = Arm_6(PIN_LIST, DIR_LIST)
63 time.sleep(3)
64
65 while 1:
66
67 #arm.set_single_ms(3, 2.5)
68 arm.set_single_angle(3, -90)
69 arm.flesh()
70 print("-90")
71 time.sleep(3)
72
73 arm.set_single_angle(3, 90)
74 arm.flesh()
75 print("90")
76 time.sleep(3)

Callers

nothing calls this directly

Calls 3

set_single_angleMethod · 0.95
fleshMethod · 0.95
Arm_6Class · 0.85

Tested by

no test coverage detected