From d0e7720988137b2bb4d7253be33ef042190bdd85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20B=C3=A4hr?= Date: Fri, 31 Dec 2021 00:52:34 +0100 Subject: [PATCH] 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) --- pygears/cycloid_tooth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pygears/cycloid_tooth.py b/pygears/cycloid_tooth.py index c0ef99e..866a8e7 100644 --- a/pygears/cycloid_tooth.py +++ b/pygears/cycloid_tooth.py @@ -22,7 +22,7 @@ from ._functions import rotation, reflection class CycloidTooth(): - def __init__(self, z1=5, z2=5, z=14, m=5, clearance=0.12, backlash=0.00, head=0.0): + def __init__(self, z1=5, z2=5, z=14, m=5, clearance=0.25, backlash=0.00, head=0.0): self.m = m self.z = z self.clearance = clearance @@ -37,8 +37,8 @@ class CycloidTooth(): self.d2 = self.z2 * self.m self.phi = self.m * pi self.d = self.z * self.m - self.da = self.d + 2*self.m + self.head * self.m - self.di = self.d - 2*self.m - self.clearance * self.m + self.da = self.d + 2 * (1 + self.head) * self.m + self.di = self.d - 2 * (1 + self.clearance) * self.m self.phipart = 2 * pi / self.z def epicycloid_x(self):