axis.py don't set_motion_teleop() unless needed #95
update() only needs to call set_motion_teleop() in manual mode when something has switched to COORD this guard was added to improve behavior with multiple guis changing modes but may no longer be required also: remove unused function set_teleop_mode() Signed-off-by: Dewey Garrett <dgarrett@panix.com>
This commit is contained in:
parent
b97a1cae6b
commit
3e93bfa14e
1 changed files with 1 additions and 5 deletions
|
|
@ -744,7 +744,7 @@ class LivePlotter:
|
|||
del self.stat
|
||||
return
|
||||
|
||||
if ( (self.stat.motion_mode != linuxcnc.TRAJ_MODE_FREE)
|
||||
if ( (self.stat.motion_mode == linuxcnc.TRAJ_MODE_COORD)
|
||||
and (self.stat.task_mode == linuxcnc.MODE_MANUAL)
|
||||
):
|
||||
set_motion_teleop(1)
|
||||
|
|
@ -2721,10 +2721,6 @@ class TclCommands(nf.TclCommands):
|
|||
comp['jog.v'] = vars.ja_rbutton.get() == "v"
|
||||
comp['jog.w'] = vars.ja_rbutton.get() == "w"
|
||||
|
||||
def set_teleop_mode():
|
||||
set_motion_teleop(vars.teleop_mode.get())
|
||||
s.poll()
|
||||
|
||||
def save_gcode(*args):
|
||||
if not loaded_file: return
|
||||
initialfile = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue