def _getInstructions(self, sequence): """CW direction ATM""" side_X, side_Y, corner_radius = self.getGrooveAdjustments() file_text = addDebugFrame(inspect.currentframe()) file_text += self.machine.setMode('INCR') file_text += G.G1_XY((0, side_Y - (2 * corner_radius))) file_text += G.G2XY((corner_radius, corner_radius), (corner_radius, 0)) file_text += G.G1_XY((side_X - (2 * corner_radius), 0)) file_text += G.G2XY((corner_radius, -corner_radius), (0, -corner_radius)) file_text += G.G1_XY((0, -side_Y + (2 * corner_radius))) file_text += G.G2XY((-corner_radius, -corner_radius), (-corner_radius, 0)) file_text += G.G1_XY((-side_X + (2 * corner_radius), 0)) file_text += G.G2XY((-corner_radius, corner_radius), (0, corner_radius)) return file_text
def _rightwardsPath(self): """ Each of these paths is the full width of one finger. """ distribution = self.getDistribution() finger_width = distribution['finger_width'] x_straight_cut = distribution['x_straight_cut'] file_text = G.comment(' => _rightwardsPath') file_text += G.G2XY((finger_width, finger_width), (finger_width, 0)) file_text += G.G1_XY((x_straight_cut, 0)) return file_text
def _getInstructions(self, sequence): diameter = self._getAdjustedDiameter() file_text = self.machine.setMode('INCR') file_text += G.G2XY((0, 0), (diameter / 2, 0)) return file_text