I hate threads like this they get me interested in topics that I should leave well alone. I considered creating a SmartCool clone some time ago and decided it wasn't the solution I was looking for… but now I think, with some modification, it could be quite useful.

Do you normally track the tool tip or Z-Zero?

Regarding the calculation:

Originally Posted by

**kstrauss**
If you examine the Tormach code I would appreciate any comments on the lines:

#high school geometry

central_angle = math.degrees(math.atan((length + self.V_MOUNT_DISTANCE+self.vertical_adjustment)/self.H_MOUNT_DISTANCE)) # center slot computation

offset_angle = math.degrees(math.atan(self.S_DELTA_DISTANCE/math.sqrt(length**2 + self.H_MOUNT_DISTANCE**2)))

They appear to miscalculate the offset_angle which results in an aiming error. I would appreciate a confirmation of the problem from any users of a real SmartCool before I report it to Tormach!

The calculation of the central_angle uses the sum of 3 height values:

(length + self.V_MOUNT_DISTANCE+self.vertical_adjustment)

but the offset_angle uses only the square of the length parameter.

Assuming I understand the meaning of all these parameters in the offset_angle calculation I would replace:

length**2

by:

(length + self.V_MOUNT_DISTANCE+self.vertical_adjustment)**2

and also replace atan() with asin().

Step