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
Exemple #2
0
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
Exemple #3
0
 def __init__(self):
     self.printer = ArgentumEmulator(None, None)
Exemple #4
0
#!/usr/bin/env python

from CartesianCo import ArgentumEmulator

print('Print')

printer = ArgentumEmulator(None, None)

printer.stampImage()
printer.savePrintToFile()
printer.incrementX()
 def __init__(self):
     self.printer = ArgentumEmulator(None, None)