File tree Expand file tree Collapse file tree
src/emc/usr_intf/gmoccapy Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,30 +244,6 @@ def get_max_jog_vel(self):
244244 LOG .warning ("No MAX_LINEAR_VELOCITY entry found in [TRAJ] of INI file. Using default value of 600 units / min." )
245245 return temp * 60
246246
247- def get_default_ang_jog_vel (self ):
248- # get default angular jog velocity
249- temp = self .inifile .getreal ("DISPLAY" , "DEFAULT_ANGULAR_VELOCITY" )
250- if not temp :
251- temp = 360.0
252- LOG .warning ("No DEFAULT_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 360 degree / min." )
253- return temp
254-
255- def get_max_ang_jog_vel (self ):
256- # get max angular velocity
257- temp = self .inifile .getreal ("DISPLAY" , "MAX_ANGULAR_VELOCITY" )
258- if not temp :
259- temp = 3600.0
260- LOG .warning ("No MAX_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 3600 degree / min." )
261- return temp
262-
263- def get_min_ang_jog_vel (self ):
264- # get min angular velocity
265- temp = self .inifile .getreal ("DISPLAY" , "MIN_ANGULAR_VELOCITY" )
266- if not temp :
267- temp = 0.1
268- LOG .warning ("No MIN_ANGULAR_VELOCITY entry found in [DISPLAY] of INI file. Using default value of 0.1 degree / min." )
269- return temp
270-
271247 def get_embedded_tabs (self ):
272248 # Check INI file for embed commands
273249 # NAME is used as the tab label if a notebook is used
Original file line number Diff line number Diff line change @@ -1778,9 +1778,9 @@ def _init_preferences(self):
17781778 if not "a" in self .axis_list and not "b" in self .axis_list and not "c" in self .axis_list :
17791779 self .widgets .spc_ang_jog_vel .hide ()
17801780 else :
1781- self .widgets .spc_ang_jog_vel .set_property ("min" , self .get_ini_info . get_min_ang_jog_vel () )
1782- self .widgets .spc_ang_jog_vel .set_property ("max" , self .get_ini_info . get_max_ang_jog_vel () )
1783- self .widgets .spc_ang_jog_vel .set_value (self .get_ini_info . get_default_ang_jog_vel () )
1781+ self .widgets .spc_ang_jog_vel .set_property ("min" , self .INI . MIN_ANGULAR_JOG_VEL )
1782+ self .widgets .spc_ang_jog_vel .set_property ("max" , self .INI . MAX_ANGULAR_JOG_VEL )
1783+ self .widgets .spc_ang_jog_vel .set_value (self .INI . DEFAULT_ANGULAR_JOG_VEL )
17841784
17851785 font = self .prefs .getpref ("gcodeview_font" , "monospace 10" , str )
17861786 font_desc = Pango .FontDescription .from_string (font )
You can’t perform that action at this time.
0 commit comments