This commit is contained in:
2019-05-18 19:34:45 +02:00
parent 381af7dc9a
commit 07f5be3bc1
2 changed files with 3 additions and 7 deletions
+3 -5
View File
@@ -1,7 +1,7 @@
import time
import csv
file = "/home/lars/Schreibtisch/sequence.csv"
file = "sequence.csv"
with open(file) as f:
csv_reader = csv.reader(f, delimiter=',')
for row in csv_reader:
@@ -9,8 +9,6 @@ with open(file) as f:
print("sleep " + row[0].split(" ")[1])
time.sleep(int(row[0].split(" ")[1]))
else:
f = 0
for i in row:
for count, i in enumerate(row):
print(i)
print(str(f))
f += 1
print(count)
-2
View File
@@ -130,8 +130,6 @@ class argvReader:
if not servo.geometry.is_inside(ms):
print("Position to big or to small")
sys.exit()
elif 0 < servo < 5:
print("Servo is not on robotarm")
else:
set_servo_pulse(servo_int, servo.ms)
elif servo_int == 4: