Skip to content

Commit f106ef7

Browse files
committed
Multi iteration
1 parent 30e30fe commit f106ef7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/jackhammer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
from ctypes import c_char, c_int
2+
13
from sensapex import UMP
2-
from ctypes import c_int, c_char
34

45
um = UMP.get_ump()
56

67
dev_id = 3
78
axis = 3
89

9-
for i in range(20):
10-
um.call("um_take_jackhammer_step", c_int(dev_id), c_char(axis), c_int(1), c_int(1), c_int(50), c_int(0), c_int(0))
10+
um.call("um_take_jackhammer_step", c_int(dev_id), c_char(axis), c_int(20), c_int(10), c_int(50), c_int(5), c_int(-50))

0 commit comments

Comments
 (0)