Beispiel #1
0
#!/usr/bin/env python
import time
import sys
import rotary_encoder2
import math as m
from cilindros.cilindro import Sencillo , Doble


tr = Doble(0,1)
m1 = Sencillo(2)
m2 = Sencillo(3)
pr = Sencillo(4)
cz = Sencillo(5)
db = Doble(6,7)

largo_prensa = 145
dm1 = 1320
dm2 = 2250
dpr = 3820
dcz = 6650

magnitudes = sys.argv
print magnitudes
#magnitudes = magnitudes[1:-1].split(',')
magnitudes2 = []
print magnitudes
print magnitudes[1:]
for string in magnitudes[1:]:
    magnitudes2.append(float(string))
print magnitudes2
Beispiel #2
0
#!/usr/bin/env python
import time
import sys
import rotary_encoder2
import math as m
from cilindros.cilindro import Sencillo, Doble

tr = Doble(0, 1)
m1 = Sencillo(2)
m2 = Sencillo(3)
pr = Sencillo(4)
cz = Sencillo(5)
db = Doble(6, 7)

largo_prensa = 145
dm1 = 1320
dm2 = 2250
dpr = 3820
dcz = 6650

magnitudes = sys.argv
print magnitudes
#magnitudes = magnitudes[1:-1].split(',')
magnitudes2 = []
print magnitudes
print magnitudes[1:]
for string in magnitudes[1:]:
    magnitudes2.append(float(string))
print magnitudes2

decoder = rotary_encoder2.decoder(
Beispiel #3
0
from stepper.stepper import Nema42
from cilindros.cilindro import Doble

tr = Doble(0,1)
a = Nema42(12,7)

tr.entrar()
a.parar()

Beispiel #4
0
#!/usr/bin/env python

from rotary_encoder2 import decoder
from cilindros.cilindro import Sencillo, Doble

tn = Doble(0, 1)
m1 = Sencillo(2)
m2 = Sencillo(3)
pr = Sencillo(4)
ci = Sencillo(5)
db = Doble(6, 7)

magnitudes = []
Beispiel #5
0
from stepper.stepper import Nema42
from cilindros.cilindro import Doble

tr = Doble(0, 1)
a = Nema42(12, 7)

tr.entrar()
a.parar()