You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.data.gcode_queue.put("G90 ") # Switch back to absolute mode
72
74
self.data.gcode_queue.put("G0 X0 Y0 ") # Move to home location
75
+
76
+
ifoldUnits=="INCHES":
77
+
# switch back to inches
78
+
self.data.gcode_queue.put("G20 ") # Switch back to inches
79
+
73
80
returnTrue
74
81
75
82
@@ -121,26 +128,6 @@ def calculate(self, result):
121
128
)
122
129
returnFalse
123
130
124
-
"""
125
-
if self.unitsBtnT.text == 'Units: inches':
126
-
if (((distBetweenCuts12*25.4) > workspaceWidth) or ((distBetweenCuts12*25.4) < (workspaceWidth / 2))):
127
-
self.data.message_queue.put('Message: The measurement between cut 1 and cut 2 of ' + str(distBetweenCuts12) + ' inches seems wrong.\n\nPlease check the number and enter it again.')
128
-
return
129
-
if (((distBetweenCuts34*25.4) > workspaceWidth) or ((distBetweenCuts34*25.4) < (workspaceWidth / 2))):
130
-
self.data.message_queue.put('Message: The measurement between cut 3 and cut 4 of ' + str(distBetweenCuts34) + ' inches seems wrong.\n\nPlease check the number and enter it again.')
131
-
return
132
-
if (((distWorkareaTopToCut5*25.4) > (workspaceHeight/2)) or (distWorkareaTopToCut5 < 0)):
133
-
self.data.message_queue.put('Message: The measurement between the top edge of the work area and cut 5 of ' + str(distWorkareaTopToCut5) + ' inches seems wrong.\n\nPlease check the number and enter it again.')
134
-
return
135
-
if ((bitDiameter > 1) or (bitDiameter < 0)):
136
-
self.data.message_queue.put('Message: The bit diameter value of ' + str(bitDiameter) + ' inches seems wrong.\n\nPlease check the number and enter it again.')
0 commit comments