Skip to content

Commit 079788f

Browse files
committed
gmoccapy: DEFAULT_LINEAR_VELOCITY + MAX_LINEAR_VELOCITY from qt_istat (TRAJ --> DISPLAY)
1 parent ad08b1d commit 079788f

File tree

2 files changed

+2
-25
lines changed

2 files changed

+2
-25
lines changed

src/emc/usr_intf/gmoccapy/getiniinfo.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -231,29 +231,6 @@ def get_lathe_wear_offsets(self):
231231
return False
232232
return True
233233

234-
def get_jog_vel(self):
235-
# get default jog velocity
236-
# must convert from INI's units per second to gmoccapy's units per minute
237-
temp = self.inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY")
238-
if not temp:
239-
temp = self.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY" )
240-
if temp:
241-
temp = float(temp) / 2
242-
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using half on MAX_LINEAR_VELOCITY.")
243-
else:
244-
temp = 3.0
245-
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 180 units / min.")
246-
return float(temp) * 60
247-
248-
def get_max_jog_vel(self):
249-
# get max jog velocity
250-
# must convert from INI's units per second to gmoccapy's units per minute
251-
temp = self.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY")
252-
if not temp:
253-
temp = 10.0
254-
LOG.warning("No MAX_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 600 units / min.")
255-
return float(temp) * 60
256-
257234
def get_embedded_tabs(self):
258235
# Check INI file for embed commands
259236
# NAME is used as the tab label if a notebook is used

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,8 +587,8 @@ def _get_ini_data(self):
587587
self.no_force_homing = self.get_ini_info.get_no_force_homing()
588588

589589
# get the values for the sliders
590-
self.rabbit_jog = self.get_ini_info.get_jog_vel()
591-
self.jog_rate_max = self.get_ini_info.get_max_jog_vel()
590+
self.rabbit_jog = self.INI.DEFAULT_LINEAR_JOG_VEL
591+
self.jog_rate_max = self.INI.MAX_LINEAR_JOG_VEL
592592

593593
self.spindle_override_max = self.INI.MAX_SPINDLE_OVERRIDE/100
594594
self.spindle_override_min = self.INI.MIN_SPINDLE_OVERRIDE/100

0 commit comments

Comments
 (0)