Skip to content

Commit 26ef94e

Browse files
committed
DEFAULT_LINEAR_VELOCITY [TRAJ] -> [DISPLAY] + MAX_LINEAR_VELOCITY from qt_istat TODO: update sample configs
1 parent 4428d37 commit 26ef94e

File tree

7 files changed

+17
-31
lines changed

7 files changed

+17
-31
lines changed

configs/sim/gmoccapy/gmoccapy.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55
# General section -------------------------------------------------------------
66
[EMC]
77
VERSION = 1.1
8+
9+
# TODO update-ini 1.1 --> 1.2:
10+
#
11+
# [DISPLAY]
12+
# MIN_SPINDLE_OVERRIDE -> MIN_SPINDLE_0_OVERRIDE
13+
# MAX_SPINDLE_OVERRIDE -> MAX_SPINDLE_0_OVERRIDE
14+
# DEFAULT_SPINDLE_SPEED -> DEFAULT_SPINDLE_0_SPEED
15+
# MIN_SPINDLE_SPEED -> MIN_SPINDLE_0_SPEED
16+
# MAX_SPINDLE_SPEED -> MAX_SPINDLE_0_SPEED
17+
#
18+
# move [TRAJ]DEFAULT_LINEAR_VELOCITY -> [DISPLAY]DEFAULT_LINEAR_VELOCITY
19+
# copy [TRAJ]MAX_LINEAR_VELOCITY -> [DISPLAY]MAX_LINEAR_VELOCITY
20+
821
MACHINE = gmoccapy
922
DEBUG = 0
1023

docs/src/config/ini-config.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,8 +853,6 @@ Finally, no amount of tweaking will speed up a tool path with lots of small, tig
853853
* `ANGULAR_UNITS =` _<units>_ - (((ANGULAR UNITS))) Specifies the 'machine units' for rotational axes.
854854
Possible choices are 'deg', 'degree' (360 per circle), 'rad', 'radian' (2*π per circle), 'grad', or 'gon' (400 per circle).
855855
This does not affect the angular units of NC code. In RS274NGC, A-, B- and C- words are always expressed in degrees.
856-
* `DEFAULT_LINEAR_VELOCITY = 0.0167` - The initial rate for jogs of linear axes, in machine units per second.
857-
The value shown in 'AXIS' equals machine units per minute.
858856
* `DEFAULT_LINEAR_ACCELERATION = 2.0` - In machines with nontrivial kinematics, the acceleration used for "teleop" (Cartesian space) jogs, in 'machine units' per second per second.
859857
* `MAX_LINEAR_VELOCITY = 5.0` - (((MAX VELOCITY))) The maximum velocity for any axis or coordinated move, in 'machine units' per second.
860858
The value shown equals 300 units per minute.

share/gscreen/skins/silverdragon/silverdragon_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def initialize_preferences(self):
201201
default_spindle_speed = self.gscreen.inifile.find("DISPLAY", "DEFAULT_SPINDLE_SPEED")
202202
self.spindle_start_rpm = self.gscreen.prefs.getpref( 'spindle_start_rpm', default_spindle_speed, float )
203203
# get the values for the sliders
204-
default_jog_vel = float(self.gscreen.inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY"))
204+
default_jog_vel = float(self.gscreen.inifile.find("DISPLAY", "DEFAULT_LINEAR_VELOCITY"))
205205
self.fast_jog = default_jog_vel
206206
self.slow_jog = default_jog_vel / self.slow_jog_factor
207207
self.jog_rate_max = self.gscreen.inifile.find("TRAJ", "MAX_LINEAR_VELOCITY")

src/emc/usr_intf/axis/scripts/axis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,7 @@ def units(s, d=1.0):
34143414
or None)
34153415
default_jog_linear_speed = (
34163416
inifile.find("DISPLAY", "DEFAULT_LINEAR_VELOCITY")
3417-
or inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY")
3417+
or inifile.find("TRAJ", "DEFAULT_LINEAR_VELOCITY") # legacy
34183418
or None)
34193419

34203420
max_angular_speed = (

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

src/emc/usr_intf/pncconf/build_INI.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,6 @@ def write_inifile(self, base):
370370
else:
371371
maxvel = max(self.d.xmaxvel, self.d.ymaxvel, self.d.zmaxvel)
372372
hypotvel = (self.d.xmaxvel**2 + self.d.ymaxvel**2 + self.d.zmaxvel**2) **.5
373-
defvel = min(maxvel, max(.1, maxvel/10.))
374-
print("DEFAULT_LINEAR_VELOCITY = %.2f" % defvel, file=file)
375373
print("MAX_LINEAR_VELOCITY = %.2f" % maxvel, file=file)
376374
if self.d.restore_joint_position:
377375
print("POSITION_FILE = position.txt", file=file)

0 commit comments

Comments
 (0)