class SimulatorController(ParsingControllerBase): def __init__(self): self.printer = ArgentumEmulator(None, None) def incrementalMovementCommand(self, axis, steps): print(self.printer.currentPosition) #print('incrementalMovementCommand on {} axis for {} steps.'.format(axis, steps)) if axis == 'X': if steps == 0: self.printer.moveToX(0) else: self.printer.incrementX(xIncrement=steps) if axis == 'Y': if steps == 0: self.printer.moveToY(0) else: self.printer.incrementY(yIncrement=steps) def firingCommand(self, primitives1, address1, primitives2, address2): print('firingCommand on primitives {}-{} and address {}.'.format(primitives1, primitives2, address1)) pass
class SimulatorController(ParsingControllerBase): def __init__(self): self.printer = ArgentumEmulator(None, None) def incrementalMovementCommand(self, axis, steps): print(self.printer.currentPosition) #print('incrementalMovementCommand on {} axis for {} steps.'.format(axis, steps)) if axis == 'X': if steps == 0: self.printer.moveToX(0) else: self.printer.incrementX(xIncrement=steps) if axis == 'Y': if steps == 0: self.printer.moveToY(0) else: self.printer.incrementY(yIncrement=steps) def firingCommand(self, primitives1, address1, primitives2, address2): print('firingCommand on primitives {}-{} and address {}.'.format( primitives1, primitives2, address1)) pass
def __init__(self): self.printer = ArgentumEmulator(None, None)
#!/usr/bin/env python from CartesianCo import ArgentumEmulator print('Print') printer = ArgentumEmulator(None, None) printer.stampImage() printer.savePrintToFile() printer.incrementX()