mirror of
https://git.mirrors.martin98.com/https://github.com/petaflot/pygcode
synced 2025-06-04 11:25:20 +08:00
individual axis zero offset
This commit is contained in:
parent
21db2b0f6b
commit
613ae84a1a
@ -994,16 +994,24 @@ def curses_wrap(screen):
|
|||||||
{'[': 1, ',': 1, ']': -1, '.': -1}[k]
|
{'[': 1, ',': 1, ']': -1, '.': -1}[k]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Zeroing Axes Offsets
|
||||||
elif k == ' ':
|
elif k == ' ':
|
||||||
# Zero WPos coordinates
|
# Zero WPos coordinates
|
||||||
send_gcode(text2gcodes('G10 L20 P1 X0 Y0 Z0')[0], jogging)
|
send_gcode(text2gcodes('G10 L20 P1 X0 Y0 Z0')[0], jogging)
|
||||||
|
elif k in 'xX':
|
||||||
|
send_gcode(text2gcodes('G10 L20 P1 X0')[0], jogging)
|
||||||
|
elif k in 'yY':
|
||||||
|
send_gcode(text2gcodes('G10 L20 P1 Y0')[0], jogging)
|
||||||
|
elif k in 'zZ':
|
||||||
|
send_gcode(text2gcodes('G10 L20 P1 Z0')[0], jogging)
|
||||||
|
|
||||||
|
|
||||||
elif k == '\n':
|
|
||||||
# Jogging complete, begin stream
|
# Jogging complete, begin stream
|
||||||
|
elif k == '\n':
|
||||||
break
|
break
|
||||||
|
|
||||||
elif k == 'KEY_RESIZE':
|
|
||||||
# dummy keypress on console window resize
|
# dummy keypress on console window resize
|
||||||
|
elif k == 'KEY_RESIZE':
|
||||||
accordion.update_distrobution()
|
accordion.update_distrobution()
|
||||||
|
|
||||||
status.refresh()
|
status.refresh()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user