Skip to content

Commit 187444a

Browse files
authored
Merge branch '2.9' into debian_nocheck_docs
2 parents d2976a5 + 067f4df commit 187444a

File tree

167 files changed

+6914
-5521
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

167 files changed

+6914
-5521
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
set -x
3030
sudo apt-get install -y eatmydata
3131
eatmydata ./scripts/travis-install-build-deps.sh
32-
eatmydata curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
32+
eatmydata curl -L -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
3333
sudo eatmydata apt install ./po4a_0.67-2_all.deb
3434
cd src
3535
eatmydata ./autogen.sh
@@ -56,7 +56,7 @@ jobs:
5656
sudo apt-get install -y eatmydata
5757
eatmydata ./scripts/travis-install-build-deps.sh
5858
sudo eatmydata apt-get install -y clang
59-
eatmydata curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
59+
eatmydata curl -L -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
6060
sudo eatmydata apt install ./po4a_0.67-2_all.deb
6161
cd src
6262
eatmydata ./autogen.sh
@@ -81,7 +81,7 @@ jobs:
8181
run: |
8282
./scripts/travis-install-build-deps.sh
8383
sudo apt-get install -y eatmydata
84-
curl -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
84+
curl -L -O https://snapshot.debian.org/archive/debian/20220716T154603Z/pool/main/p/po4a/po4a_0.67-2_all.deb
8585
sudo apt install ./po4a_0.67-2_all.deb
8686
cd src
8787
eatmydata ./autogen.sh

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.9.1
1+
2.9.2

configs/sim/axis/ngcgui/pyngcgui_axis.ui

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
<object class="PyNgcGui" id="pyngcgui1">
1010
<property name="visible">True</property>
1111
<property name="can_focus">False</property>
12-
<property name="label_xalign">0</property>
13-
<property name="shadow_type">none</property>
1412
<property name="use_keyboard">False</property>
1513
<property name="debug">False</property>
1614
<property name="verbose">False</property>

configs/sim/gmoccapy/gmoccapy.ini

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,31 @@
55
# General section -------------------------------------------------------------
66
[EMC]
77
VERSION = 1.1
8-
MACHINE = gmoccapy
9-
DEBUG = 0x7FFFFFFF
8+
MACHINE = gmoccapy
9+
DEBUG = 0
1010

1111
# Sections for display options ------------------------------------------------
1212
[DISPLAY]
13-
DISPLAY = gmoccapy
14-
#DISPLAY = gmoccapy -logo /home/gmoccapy/Bilder/coolant_on.gif
13+
DISPLAY = gmoccapy -i
14+
# Log level:
15+
# DEBUG -d
16+
# INFO -i
17+
# VERBOSE -v
18+
# ERROR -q
1519

1620
# Cycle time, in milliseconds, that display will sleep between polls
17-
CYCLE_TIME = 100
21+
CYCLE_TIME = 100
1822

1923
# Values that will be allowed for override, 1.0 = 100%
20-
MAX_FEED_OVERRIDE = 1.5
21-
MAX_SPINDLE_OVERRIDE = 1.2
24+
MAX_FEED_OVERRIDE = 1.5
25+
MAX_SPINDLE_OVERRIDE = 1.2
2226
MIN_SPINDLE_OVERRIDE = 0.5
2327

2428
# Max and default jog speeds in units per second
25-
MAX_LINEAR_VELOCITY = 166
29+
MAX_LINEAR_VELOCITY = 166
2630
DEFAULT_LINEAR_VELOCITY = 100
27-
MAX_ANGULAR_VELOCITY = 234
28-
DEFAULT_SPINDLE_SPEED = 450
31+
MAX_ANGULAR_VELOCITY = 234
32+
DEFAULT_SPINDLE_SPEED = 450
2933

3034
# Prefix to be used
3135
PROGRAM_PREFIX = ../../nc_files/
Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# EMC controller parameters for a simulated machine.
2+
# General note: Comments can either be preceded with a # or ; - either is
3+
# acceptable, although # is in keeping with most linux config files.
4+
5+
# General section -------------------------------------------------------------
6+
[EMC]
7+
VERSION = 1.1
8+
MACHINE = gmoccapy_800x600
9+
DEBUG = 0
10+
11+
# Sections for display options ------------------------------------------------
12+
[DISPLAY]
13+
DISPLAY = gmoccapy -i
14+
# Log level:
15+
# DEBUG -d
16+
# INFO -i
17+
# VERBOSE -v
18+
# ERROR -q
19+
20+
# Cycle time, in milliseconds, that display will sleep between polls
21+
CYCLE_TIME = 100
22+
23+
# Values that will be allowed for override, 1.0 = 100%
24+
MAX_FEED_OVERRIDE = 1.5
25+
MAX_SPINDLE_OVERRIDE = 1.2
26+
MIN_SPINDLE_OVERRIDE = 0.5
27+
28+
# Max and default jog speeds in units per second
29+
MAX_LINEAR_VELOCITY = 166
30+
DEFAULT_LINEAR_VELOCITY = 100
31+
MAX_ANGULAR_VELOCITY = 234
32+
DEFAULT_SPINDLE_SPEED = 450
33+
34+
# Prefix to be used
35+
PROGRAM_PREFIX = ../../nc_files/
36+
37+
USER_COMMAND_FILE=gmoccapy_800x600.py
38+
39+
# Introductory graphic
40+
INTRO_GRAPHIC = linuxcnc.gif
41+
INTRO_TIME = 5
42+
43+
# list of selectable jog increments
44+
INCREMENTS = 1.000 mm, 0.100 mm, 0.010 mm, 0.001 mm, 1.2345 inch
45+
46+
# for details see nc_files/subroutines/maco_instructions.txt
47+
[FILTER]
48+
PROGRAM_EXTENSION = .png,.gif,.jpg Grayscale Depth Image
49+
PROGRAM_EXTENSION = .py Python Script
50+
png = image-to-gcode
51+
gif = image-to-gcode
52+
jpg = image-to-gcode
53+
py = python3
54+
55+
# Task controller section -----------------------------------------------------
56+
[RS274NGC]
57+
RS274NGC_STARTUP_CODE = G17 G21 G40 G43H0 G54 G64P0.005 G80 G90 G94 G97 M5 M9
58+
PARAMETER_FILE = sim.var
59+
SUBROUTINE_PATH = macros
60+
61+
# Motion control section ------------------------------------------------------
62+
[EMCMOT]
63+
EMCMOT = motmod
64+
COMM_TIMEOUT = 1.0
65+
BASE_PERIOD = 100000
66+
SERVO_PERIOD = 1000000
67+
68+
# Hardware Abstraction Layer section --------------------------------------------------
69+
[TASK]
70+
TASK = milltask
71+
CYCLE_TIME = 0.001
72+
73+
# Part program interpreter section --------------------------------------------
74+
[HAL]
75+
HALFILE = core_sim.hal
76+
HALFILE = spindle_sim.hal
77+
HALFILE = simulated_home.hal
78+
79+
# Single file that is executed after the GUI has started.
80+
POSTGUI_HALFILE = gmoccapy_postgui.hal
81+
82+
HALUI = halui
83+
84+
# Trajectory planner section --------------------------------------------------
85+
[HALUI]
86+
#No Content
87+
88+
[TRAJ]
89+
COORDINATES = X Y Z
90+
LINEAR_UNITS = mm
91+
ANGULAR_UNITS = degree
92+
DEFAULT_LINEAR_VELOCITY = 35
93+
MAX_LINEAR_VELOCITY = 234
94+
POSITION_FILE = position.txt
95+
# NO_FORCE_HOMING = 1
96+
97+
[EMCIO]
98+
EMCIO = io
99+
CYCLE_TIME = 0.100
100+
101+
# tool table file
102+
TOOL_TABLE = tool.tbl
103+
TOOL_CHANGE_POSITION = 100 100 -10
104+
TOOL_CHANGE_QUILL_UP = 1
105+
106+
[KINS]
107+
KINEMATICS = trivkins coordinates=xyz
108+
JOINTS = 3
109+
110+
[AXIS_X]
111+
MIN_LIMIT = -400.0
112+
MAX_LIMIT = 400.0
113+
MAX_VELOCITY = 166
114+
MAX_ACCELERATION = 1500.0
115+
116+
[JOINT_0]
117+
TYPE = LINEAR
118+
MAX_VELOCITY = 166
119+
MAX_ACCELERATION = 1500.0
120+
BACKLASH = 0.000
121+
INPUT_SCALE = 4000
122+
OUTPUT_SCALE = 1.000
123+
MIN_LIMIT = -400.0
124+
MAX_LIMIT = 400.0
125+
FERROR = 0.050
126+
MIN_FERROR = 0.010
127+
HOME_OFFSET = 0.0
128+
HOME = 10
129+
HOME_SEARCH_VEL = 200.0
130+
HOME_LATCH_VEL = 20.0
131+
HOME_USE_INDEX = NO
132+
HOME_IGNORE_LIMITS = NO
133+
HOME_SEQUENCE = 1
134+
HOME_IS_SHARED = 1
135+
136+
# Second axis
137+
[AXIS_Y]
138+
MIN_LIMIT = -400.0
139+
MAX_LIMIT = 400.0
140+
MAX_VELOCITY = 166
141+
MAX_ACCELERATION = 1500.0
142+
143+
[JOINT_1]
144+
TYPE = LINEAR
145+
MAX_VELOCITY = 166
146+
MAX_ACCELERATION = 1500.0
147+
BACKLASH = 0.000
148+
INPUT_SCALE = 4000
149+
OUTPUT_SCALE = 1.000
150+
MIN_LIMIT = -400.0
151+
MAX_LIMIT = 400.0
152+
FERROR = 0.050
153+
MIN_FERROR = 0.010
154+
HOME_OFFSET = 0.0
155+
HOME = 10
156+
HOME_SEARCH_VEL = 200.0
157+
HOME_LATCH_VEL = 20.0
158+
HOME_USE_INDEX = NO
159+
HOME_IGNORE_LIMITS = NO
160+
HOME_SEQUENCE = 1
161+
162+
# Third axis
163+
[AXIS_Z]
164+
MIN_LIMIT = -400.0
165+
MAX_LIMIT = 0.001
166+
MAX_VELOCITY = 166
167+
MAX_ACCELERATION = 1500.0
168+
169+
[JOINT_2]
170+
TYPE = LINEAR
171+
MAX_VELOCITY = 166
172+
MAX_ACCELERATION = 1500.0
173+
BACKLASH = 0.000
174+
INPUT_SCALE = 4000
175+
OUTPUT_SCALE = 1.000
176+
MIN_LIMIT = -400.0
177+
MAX_LIMIT = 0.001
178+
FERROR = 0.050
179+
MIN_FERROR = 0.010
180+
HOME_OFFSET = 1.0
181+
HOME = -10
182+
HOME_SEARCH_VEL = 200.0
183+
HOME_LATCH_VEL = 20.0
184+
HOME_USE_INDEX = NO
185+
HOME_IGNORE_LIMITS = NO
186+
HOME_SEQUENCE = 0
187+
HOME_IS_SHARED = 1
188+
189+
# section for main IO controller parameters -----------------------------------
190+
[MACROS]
191+
MACRO = go_to_position x-pos y-pos z-pos
192+
MACRO = i_am_lost
193+
MACRO = increment x-incr y-incr
194+
MACRO = macro_4
195+
MACRO = macro_5
196+
MACRO = macro_6
197+
MACRO = macro_7
198+
MACRO = macro_8
199+
MACRO = macro_9
200+
MACRO = macro_10
201+
MACRO = macro_11
202+
MACRO = macro_12
203+
MACRO = macro_13
204+
MACRO = macro_14
205+
MACRO = macro_15
206+
207+
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
from gi.repository import Pango
2+
3+
# reduce size of v-buttons
4+
self.widgets["vbtb_main"].set_size_request(78, -1)
5+
self.widgets["lbl_time"].hide()
6+
self.widgets["vbtb_main"].set_layout(Gtk.ButtonBoxStyle.EXPAND)
7+
vbuttons = self.widgets["vbtb_main"].get_children()
8+
for v in vbuttons:
9+
v.set_size_request(60, 56)
10+
11+
# change layout of h-button boxes to allow smaller spacing & resize buttons
12+
hbuttonboxes = [ "hbtb_main", "hbtb_MDI", "hbtb_auto", "hbtb_ref",
13+
"hbtb_touch_off", "hbtb_setup", "hbtb_edit", "hbtb_tool",
14+
"hbtb_load_file", "hbtb_ref_joints" ]
15+
for b in hbuttonboxes:
16+
self.widgets[b].set_layout(Gtk.ButtonBoxStyle.EXPAND)
17+
children = self.widgets[b].get_children()
18+
for c in children:
19+
c.set_size_request(60, 56)
20+
if type(c) is Gtk.Button:
21+
btn_child = c.get_children()[0]
22+
if type(btn_child) is Gtk.Label:
23+
# btn_child.set_ellipsize(Pango.EllipsizeMode.END)
24+
btn_child.set_line_wrap(True)
25+
btn_child.set_line_wrap_mode(Pango.WrapMode.WORD_CHAR)
26+
27+
# optimize space in jog box
28+
self.widgets["vbtb_jog_incr"].hide()
29+
self.widgets["vbx_jog"].set_size_request(-1, -1)
30+
31+
# second row for gremlin buttons
32+
self.widgets["box_gremlin_buttons"].remove(self.widgets["tbtn_view_dimension"])
33+
self.widgets["box_gremlin_buttons"].remove(self.widgets["tbtn_view_tool_path"])
34+
self.widgets["box_gremlin_buttons"].remove(self.widgets["btn_delete_view"])
35+
self.widgets["btn_zoom_out"].set_margin_end(0)
36+
hbox_gremlin_buttons_2 = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
37+
hbox_gremlin_buttons_2.show()
38+
hbox_gremlin_buttons_2.pack_end(self.widgets["btn_delete_view"], False, False, 0)
39+
hbox_gremlin_buttons_2.pack_end(self.widgets["tbtn_view_tool_path"], False, False, 0)
40+
hbox_gremlin_buttons_2.pack_end(self.widgets["tbtn_view_dimension"], False, False, 0)
41+
self.widgets["vbox15"].pack_end(hbox_gremlin_buttons_2, False, False, 3)
42+
43+
# reorder settings page
44+
self.widgets["vbox_window"].remove(self.widgets["frm_ntb_preview"]) # "On Touch off"
45+
self.widgets["vbox_window"].remove(self.widgets["frm_keyboard"])
46+
self.widgets["vbox_dro_settings"].remove(self.widgets["frm_preview"])
47+
self.widgets["vbox_file"].remove(self.widgets["frm_message_position"])
48+
self.widgets["vbox_file"].remove(self.widgets["frm_themes"])
49+
self.widgets["vbox21"].remove(self.widgets["frm_unlock"])
50+
self.widgets["vbox_window"].pack_start(self.widgets["frm_preview"], False, False, 3)
51+
self.widgets["vbox_dro_settings"].pack_start(self.widgets["frm_ntb_preview"], False, False, 3)
52+
vbox_c1 = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
53+
vbox_c2 = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
54+
hbox_setup_appearance_2 = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL)
55+
hbox_setup_appearance_2.pack_start(vbox_c1, False, False, 3)
56+
hbox_setup_appearance_2.pack_start(vbox_c2, False, False, 3)
57+
hbox_setup_appearance_2.show()
58+
vbox_c1.pack_start(self.widgets["frm_keyboard"], False, False, 3)
59+
vbox_c1.pack_start(self.widgets["frm_message_position"], False, False, 3)
60+
vbox_c2.pack_start(self.widgets["frm_themes"], False, False, 3)
61+
vbox_c2.pack_start(self.widgets["frm_unlock"], False, False, 3)
62+
vbox_c1.show()
63+
vbox_c2.show()
64+
label = Gtk.Label(label=_("Appearance") + " 2")
65+
self.widgets["ntb_setup"].insert_page(hbox_setup_appearance_2, label, 1)
66+
67+
# reorder info box (feed rate, rapid override, spindle and cooling)
68+
self.widgets["box_info"].remove(self.widgets["grid_search"])
69+
self.widgets["box_info"].remove(self.widgets["ntb_info"])
70+
self.widgets["ntb_info"].remove(self.widgets["hbox_main_info"])
71+
self.widgets["hbox_main_info"].remove(self.widgets["box_tool_and_code_info"])
72+
73+
box_info = Gtk.Box(orientation=Gtk.Orientation.VERTICAL)
74+
box_info.show()
75+
box_info.pack_start(self.widgets["box_tool_and_code_info"], False, False, 0)
76+
box_info.pack_end(self.widgets["hbox_main_info"], False, False, 0)
77+
self.widgets["ntb_user_tabs"].append_page(box_info, Gtk.Label("Info"))
78+
79+
# enable user tab button to access info box
80+
self.widgets.tbtn_user_tabs.set_sensitive(True)
81+
self.user_tabs_enabled = True
82+
83+
# change default values (not necessary with correct pref file)
84+
self.xpos = 20
85+
self.ypos = 20
86+
self.width = 770
87+
self.height = 580
88+
self.widgets.adj_x_pos.set_value(self.xpos)
89+
self.widgets.adj_y_pos.set_value(self.ypos)
90+
self.widgets.adj_width.set_value(self.width)
91+
self.widgets.adj_height.set_value(self.height)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
GMOCCAPY configuration for a XYZ mill for screens with a resolution of 800x600.
2+
3+
This is done with a user command file specified by
4+
5+
USER_COMMAND_FILE=gmoccapy_800x600.py
6+
7+
This file allows further modification.
8+
For more information see: https://linuxcnc.org/docs/html/gui/gmoccapy.html#_user_command_file
9+

configs/sim/gmoccapy/gmoccapy_postgui.hal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
###################################################################
2-
# moccapy_postgui.hal file from Norbert Schechner #
2+
# gmoccapy_postgui.hal file from Norbert Schechner #
33
###################################################################
44

55
loadrt abs names=abs_spindle_feedback

0 commit comments

Comments
 (0)