Skip to content

Commit d0e7720

Browse files
jbaehrlooooo
authored andcommitted
Fix head and clearance for the cycloid gear
Head and cleance values have been applied only once, but as we're dealing with a diameter, not a radius, they are needed twice. (The involute gear does not suffer from this bug)
1 parent da42164 commit d0e7720

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pygears/cycloid_tooth.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323

2424
class CycloidTooth():
25-
def __init__(self, z1=5, z2=5, z=14, m=5, clearance=0.12, backlash=0.00, head=0.0):
25+
def __init__(self, z1=5, z2=5, z=14, m=5, clearance=0.25, backlash=0.00, head=0.0):
2626
self.m = m
2727
self.z = z
2828
self.clearance = clearance
@@ -37,8 +37,8 @@ def _calc_gear_factors(self):
3737
self.d2 = self.z2 * self.m
3838
self.phi = self.m * pi
3939
self.d = self.z * self.m
40-
self.da = self.d + 2*self.m + self.head * self.m
41-
self.di = self.d - 2*self.m - self.clearance * self.m
40+
self.da = self.d + 2 * (1 + self.head) * self.m
41+
self.di = self.d - 2 * (1 + self.clearance) * self.m
4242
self.phipart = 2 * pi / self.z
4343

4444
def epicycloid_x(self):

0 commit comments

Comments
 (0)