Dynamixel
2.9.5
RoadNarrows Robotics Dynamixel Package
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
t.py
1
ccw = [(55, 40), (30, 330), (1,0), (2,359)]
2
cw = [(40, 55), (330, 30), (0,1), (359,2)]
3
4
print
"The Data"
5
print
"ccw"
6
for
p
in
ccw:
7
print
p[0], p[1]
8
9
print
10
print
"cw"
11
for
p
in
cw:
12
print
p[0], p[1]
13
14
def
dp(pc, pp):
15
dp = pc - pp
16
if
abs(dp) > 180:
17
if
dp < 0:
18
dp = 360 + dp
19
else
:
20
dp = dp - 360
21
print
pc, pp, dp
22
23
print
24
print
25
print
"The Deltas"
26
print
"ccw"
27
for
p
in
ccw:
28
dp(p[0], p[1])
29
30
print
31
print
"cw"
32
for
p
in
cw:
33
dp(p[0], p[1])
dynashell
t.py
Generated on Fri Aug 10 2018 13:55:26 for Dynamixel by
1.8.11
©2018 RoadNarrows LLC
www.roadnarrows.com