bug fix
This commit is contained in:
+3
-5
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user