diff --git a/csv_analyse.py b/csv_analyse.py index 69512a3..986c441 100644 --- a/csv_analyse.py +++ b/csv_analyse.py @@ -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) diff --git a/terminalControl.py b/terminalControl.py index 8e41f9d..1607c2c 100644 --- a/terminalControl.py +++ b/terminalControl.py @@ -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: