Skip to content
Snippets Groups Projects
Commit 2ad2aec1 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

...

parent e621746d
No related branches found
No related tags found
No related merge requests found
...@@ -63,9 +63,10 @@ def y_n_input(prompt, true_chars): ...@@ -63,9 +63,10 @@ def y_n_input(prompt, true_chars):
def is_movement_needed(n, pos): def is_movement_needed(n, pos):
x = False x = False
p = float(pos)
print('Position »{}«: {}mm'.format(n, pos)) print('Position »{}«: {}mm'.format(n, pos))
if pos != 0: if p != 0:
corr = -pos corr = -p
print('Soll »{}« um {}mm zur Nullposition gefahren werden?' print('Soll »{}« um {}mm zur Nullposition gefahren werden?'
.format(n, corr)) .format(n, corr))
x = y_n_input(PROMPT, ['j','J']) x = y_n_input(PROMPT, ['j','J'])
...@@ -91,6 +92,7 @@ def get_pos(n): ...@@ -91,6 +92,7 @@ def get_pos(n):
print('==> _x: {}'.format(res['_x'])) print('==> _x: {}'.format(res['_x']))
a = res['_x'].split() a = res['_x'].split()
print('==> result: ' + a[idx]) print('==> result: ' + a[idx])
#pos = a[idx]
pos = 8 # dummy pos = 8 # dummy
return pos return pos
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment