예제 #1
0
파일: producesbug.py 프로젝트: tocs/gestalt
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  # providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             "FABNET", interfaces.serialInterface(baudRate=115200, interfaceType="ftdi", portName="/dev/ttyUSB0")
         )
예제 #2
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  #providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             'FABNET',
             interfaces.serialInterface(baudRate=self.baudRate,
                                        interfaceType=self.interfaceType,
                                        portName=self.portName))
예제 #3
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface  #providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface(
             'FABNET',
             interfaces.serialInterface(baudRate=115200,
                                        interfaceType='ftdi',
                                        portName='/dev/ttyUSB0'))
예제 #4
0
파일: testMachine.py 프로젝트: NFSG/086-005
	def __init__(self):
		self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
		self.xAxis = axis(nodes.networkedGestaltNode('X Axis', self.fabnet, filename = '086-005a.py'))
		self.yAxis = axis(nodes.networkedGestaltNode('Y Axis', self.fabnet, filename = '086-005a.py'))
		self.zAxis = axis(nodes.networkedGestaltNode('Z Axis', self.fabnet, filename = '086-005a.py'))	

		self.motorCurrent = 1.0	#amps
		self.motorsInitialized = False	#gets set to true once motors have been run once.
		
		self.machinePosition = [0.0, 0.0, 0.0]
예제 #5
0
    def __init__(self):
        self.fabnet = interfaces.gestaltInterface(
            'FABNET',
            interfaces.serialInterface(baudRate=115200,
                                       interfaceType='ftdi',
                                       portName='/dev/tty.usbserial-FTVG67VT'))
        self.xAxis = axis(
            nodes.networkedGestaltNode('X Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))
        self.yAxis = axis(
            nodes.networkedGestaltNode('Y Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))
        self.zAxis = axis(
            nodes.networkedGestaltNode('Z Axis',
                                       self.fabnet,
                                       filename='086-005a.py'))

        self.motorCurrent = 1.0  #amps
        self.motorsInitialized = False  #gets set to true once motors have been run once.

        self.machinePosition = [0.0, 0.0, 0.0]
예제 #6
0
	def initInterfaces(self):
		if self.providedInterface: self.fabnet = self.providedInterface		#providedInterface is defined in the virtualMachine class.
		else: self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = self.PORT))
예제 #7
0
 def initInterfaces(self):
     self.arduinoInterface = interfaces.serialInterface(
         baudRate=38400, interfaceType='lufa', portName='/dev/ttyACM0')
예제 #8
0
 def initInterfaces(self):
     if self.providedInterface:
         self.fabnet = self.providedInterface		#providedInterface is defined in the virtualMachine class.
     else:
         self.fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = self.baudRate, interfaceType = self.interfaceType, portName = self.portName))
     return self.fabnet
예제 #9
0
from gestalt.Nodes import printrboard
from gestalt import nodes
from gestalt.Nodes import dummyNode
from gestalt import interfaces

#myPrintrboard = nodes.soloIndependentNode(name = 'myPrintrboard', module = printrboard)
#gsArduino = nodes.soloGestaltNode(name = 'gsArduino1')

myInterface = interfaces.gestaltInterface('myInterface', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
myFabUnit = nodes.networkedGestaltNode('myFabUnit', myInterface, module = dummyNode)

#gsArduino = nodes.soloGestaltNode(name = 'gsArduino', interface = interfaces.serialInterface(baudRate = 76800, interfaceType = 'lufa', 
#																								portName = "/dev/tty.usbmodemfa131"), module = dummyNode)

#gsArduino.identifyRequest()

#print gsArduino.urlRequest()
예제 #10
0
파일: testMachine.py 프로젝트: tocs/gestalt
from gestalt.Nodes import printrboard
from gestalt import nodes
from gestalt.Nodes import dummyNode
from gestalt import interfaces

# myPrintrboard = nodes.soloIndependentNode(name = 'myPrintrboard', module = printrboard)
# gsArduino = nodes.soloGestaltNode(name = 'gsArduino1')

myInterface = interfaces.gestaltInterface(
    "myInterface",
    interfaces.serialInterface(baudRate=115200, interfaceType="ftdi", portName="/dev/tty.usbserial-FTVG67VT"),
)
myFabUnit = nodes.networkedGestaltNode("myFabUnit", myInterface, module=dummyNode)

# gsArduino = nodes.soloGestaltNode(name = 'gsArduino', interface = interfaces.serialInterface(baudRate = 76800, interfaceType = 'lufa',
# 																								portName = "/dev/tty.usbmodemfa131"), module = dummyNode)

# gsArduino.identifyRequest()

# print gsArduino.urlRequest()
예제 #11
0
        while self.xAxis.virtualNode.getMoveStatusRequest(
        ) != 0:  #prior move still pending
            time.sleep(0.05)

        self.xAxis.virtualNode.stepSync(maxSteps, velocity, velocity,
                                        0)  #start move, no acceleration

        #update machine position
        self.machinePosition[0] += self.xAxis.getDelta(xSteps)
        self.machinePosition[1] += self.yAxis.getDelta(ySteps)
        self.machinePosition[2] += self.zAxis.getDelta(zSteps)


EFD = nodes.soloIndependentNode(name='EFD',
                                interface=interfaces.serialInterface(
                                    baudRate=115200,
                                    interfaceType='lufa',
                                    portName="/dev/tty.PL2303-000012FD"),
                                filename='ultimus.py')

#myMachine = virtualMachine()
#myMachine.move(25, 25, 25, 50)
#
#EFD.dispense()
#time.sleep(5)

fabnet = interfaces.gestaltInterface(
    'FABNET',
    interfaces.serialInterface(baudRate=115200,
                               interfaceType='ftdi',
                               portName='/dev/tty.usbserial-FTVG67VT'))
myNode = nodes.networkedGestaltNode('myNode', fabnet, filename='086-005a.py')
예제 #12
0
파일: testMachine.py 프로젝트: NFSG/086-005
		while self.xAxis.virtualNode.getMoveStatusRequest() != 0:	#prior move still pending
			time.sleep(0.05)
		
		self.xAxis.virtualNode.stepSync(maxSteps, velocity, velocity, 0)	#start move, no acceleration
		
		#update machine position
		self.machinePosition[0] += self.xAxis.getDelta(xSteps)
		self.machinePosition[1] += self.yAxis.getDelta(ySteps)
		self.machinePosition[2] += self.zAxis.getDelta(zSteps)
		





EFD = nodes.soloIndependentNode(name = 'EFD', interface = interfaces.serialInterface(baudRate = 115200, interfaceType = 'lufa',
																								portName = "/dev/tty.PL2303-000012FD"),
									filename = 'ultimus.py')

#myMachine = virtualMachine()
#myMachine.move(25, 25, 25, 50)
#
#EFD.dispense()
#time.sleep(5)

fabnet = interfaces.gestaltInterface('FABNET', interfaces.serialInterface(baudRate = 115200, interfaceType = 'ftdi', portName = '/dev/tty.usbserial-FTVG67VT'))
myNode = nodes.networkedGestaltNode('myNode', fabnet, filename = '086-005a.py')
#myNode.loadProgram('086-005a.hex')
myNode.setMotorCurrent(0.5)
myNode.stepConfigRequest(1, 3000)
myNode.stepSync(10000,1000,0,500)
for i in range(12):
예제 #13
0
파일: arduinoVM.py 프로젝트: tocs/gestalt
 def initInterfaces(self):
     self.arduinoInterface = interfaces.serialInterface(
         baudRate=38400, interfaceType="lufa", portName="/dev/ttyACM0"
     )
예제 #14
0
	def init(self, **kwargs):
		#connect to the printrboard
		self.interface.set(interfaces.serialInterface(baudRate = 200000))
		self.interface.acquirePort('lufa')