Skip to content

Commit 35fd74c

Browse files
committed
gmoccapy: DEFAULT_LINEAR_VELOCITY + MAX_LINEAR_VELOCITY from qt_istat (TRAJ --> DISPLAY)
1 parent 7209902 commit 35fd74c

2 files changed

Lines changed: 2 additions & 25 deletions

File tree

src/emc/usr_intf/gmoccapy/getiniinfo.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -221,29 +221,6 @@ def get_backtool_lathe(self):
221221
def get_lathe_wear_offsets(self):
222222
return self.inifile.getbool("DISPLAY", "LATHE_WEAR_OFFSETS", fallback=False)
223223

224-
def get_jog_vel(self):
225-
# get default jog velocity
226-
# must convert from INI's units per second to gmoccapy's units per minute
227-
temp = self.inifile.getreal("TRAJ", "DEFAULT_LINEAR_VELOCITY")
228-
if not temp:
229-
temp = self.inifile.getreal("TRAJ", "MAX_LINEAR_VELOCITY" )
230-
if temp:
231-
temp = temp / 2
232-
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using half on MAX_LINEAR_VELOCITY.")
233-
else:
234-
temp = 3.0
235-
LOG.warning("No DEFAULT_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 180 units / min.")
236-
return temp * 60
237-
238-
def get_max_jog_vel(self):
239-
# get max jog velocity
240-
# must convert from INI's units per second to gmoccapy's units per minute
241-
temp = self.inifile.getreal("TRAJ", "MAX_LINEAR_VELOCITY")
242-
if not temp:
243-
temp = 10.0
244-
LOG.warning("No MAX_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 600 units / min.")
245-
return temp * 60
246-
247224
def get_embedded_tabs(self):
248225
# Check INI file for embed commands
249226
# 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)