Skip to content

Commit 234e155

Browse files
authored
Merge branch 'master' into Orient_Add-modes-with-index
2 parents dd9e02d + dd8d0be commit 234e155

20 files changed

Lines changed: 851 additions & 191 deletions

File tree

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
#!/bin/sh
22

33
# The azure.archive.ubuntu.com apt mirror on GitHub-hosted runners
4-
# regularly degrades to trickle speeds for extended periods, which stalls
5-
# package downloads until the job hits its timeout. apt retries do not
6-
# help because the connection stays alive, only slow. Switch to the main
7-
# Ubuntu archive, which is consistently fast from Azure.
4+
# regularly degrades to trickle speeds, stalling jobs until they time
5+
# out. Switch to archive.ubuntu.com, which is consistently fast.
86

97
set -eu #Needed so CI fails when anything is wrong
108
set -x
119

12-
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; do
10+
# apt-mirrors.txt must be included: the runner image points apt at it
11+
# via mirror+file:// in ubuntu.sources, so the azure URL lives there.
12+
for f in /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources /etc/apt/apt-mirrors.txt; do
1313
[ -e "$f" ] || continue
1414
sudo sed -i 's|http://azure\.archive\.ubuntu\.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' "$f"
1515
done
16+
17+
# Fail if azure is still referenced, so an image layout change cannot
18+
# turn this script into a silent no-op.
19+
if grep -rsq 'azure\.archive\.ubuntu\.com' /etc/apt; then
20+
echo "error: azure.archive.ubuntu.com still referenced under /etc/apt after mirror switch" >&2
21+
exit 1
22+
fi

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ jobs:
187187
.github/scripts/build-doc.sh
188188
- name: Check manpage names match filenames
189189
run: scripts/manpage-name-check.py --enforce docs/build/man
190+
- name: Check for derived-id section references
191+
run: scripts/docs-anchor-check.py --enforce
190192
- name: Verify no untracked or modified files after build
191193
run: |
192194
#*.po and documentation.pot are modifyed by build. Ignore them for now.

configs/sim/axis/axis.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ HALUI = halui
131131
COORDINATES = X Y Z
132132
LINEAR_UNITS = inch
133133
ANGULAR_UNITS = degree
134-
MAX_LINEAR_VELOCITY = 4
134+
MAX_LINEAR_VELOCITY = 5
135135
DEFAULT_LINEAR_ACCELERATION = 100
136136
MAX_LINEAR_ACCELERATION = 100
137137
POSITION_FILE = position.txt

docs/src/getting-started/getting-linuxcnc.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ The outline of the process looks like this:
3535

3636
This section describes some methods for downloading the Live/Install image.
3737

38+
[[_normal_download]]
3839
=== Normal Download
3940

4041
Software for LinuxCNC to download is presented on the project's
@@ -242,6 +243,7 @@ In rare cases you might have to reset the BIOS to default settings if
242243
during the Live CD install it cannot recognize the hard drive
243244
during the boot up.
244245

246+
[[_alternate_install_methods]]
245247
== Alternate Install Methods
246248

247249
The easiest, preferred way to install LinuxCNC is to use the Live/Install Image as described above.

docs/src/gui/qtvcp.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ You are free to mix them in any way on your panel.
7777
A very important widget for CNC control is the *`ScreenOptions` widget*:
7878
It does not add anything visually to the screen but, allows important details to be selected rather then be coded in the handler file.
7979

80+
[[_ini_settings]]
8081
=== INI Settings
8182

8283
If you are using QtVCP to make a CNC motion control screen (rather then a HAL based panel), in the INI file, in the `[DISPLAY]` section, add a line with the following pattern:

docs/src/install/latency-test.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ isolcpus::
227227
for latency>>.
228228

229229

230+
[[_latency_tuning]]
230231
== Latency tuning
231232

232233
LinuxCNC can run on many different hardware platforms and with many

docs/src/man/man1/halcmd.1.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ and press tab to complete the names of items such as pins and signals.
5858
display a help screen and exit, displays extended help on _command_ if
5959
specified
6060

61+
[[_commands]]
6162
== COMMANDS
6263

6364
Commands tell *halcmd* what to do. Normally *halcmd* reads a single

docs/src/man/man1/linuxcncrsh.1.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ The supported commands are as follows:
178178
Help will respond regardless of whether a 'HELLO' has been
179179
successfully negotiated.
180180

181+
[[_subcommands]]
181182
== SUBCOMMANDS
182183

183184
Commands and parameters are not case sensitive, except for the

docs/src/man/man1/mesambccc.1.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ below.
2828
Output a verbose list of configuration parameters, devices, Modbus messages
2929
and HAL pins.
3030

31+
[[_mbccs_file_format]]
3132
== MBCCS FILE FORMAT
3233
The Modbus command control source file (mbccs file) is an XML formatted
3334
document describing the communication parameters, connected devices, HAL pins
@@ -59,6 +60,7 @@ All values are checked to be within an acceptable range. Errors and warnings
5960
are emitted when values are out of bounds. In case of a warning they may be
6061
clamped to the acceptable range.
6162

63+
[[_modbus_functions]]
6264
=== MODBUS FUNCTIONS
6365
A subset of the Modbus functions is supported (with function number in parentheses):
6466

@@ -82,6 +84,7 @@ A subset of the Modbus functions is supported (with function number in parenthes
8284
You can use the function's symbolic name or numerical value in '<command>' in
8385
the 'function' attribute (as in `function="W_REGISTERS"` or `function="16"`).
8486

87+
[[_modbus_types]]
8588
=== MODBUS TYPES
8689
The 'modbustype' attribute declares the interpretation of values to or from a
8790
Modbus device's registers. They can be a signed integer (S), unsigned integer
@@ -387,6 +390,7 @@ Recognized '<initlist>/<command>/<data>' attributes:
387390
16-bit integer but depends on the 'modbustype' attribute and the range of
388391
acceptable values depends on the Modbus function.
389392

393+
[[_hal_types]]
390394
=== HAL TYPES
391395
A '<command>' in the '<commands>' section maps to one or more HAL pins with
392396
specific type using the 'haltype' attribute. Recognized are:

docs/src/man/man9/hm2_eth.9.adoc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,17 @@ IO boards, with HostMot2 firmware.
77

88
== SYNOPSIS
99

10-
*loadrt hm2_eth* [**config=**"__str__[,__str__...]"] [**board_ip=**__ip__[,__ip__...] ] [**board_mac=**__mac__[,__mac__...] ] [**firewall=**__auto|iptables|nft|none__]
10+
*loadrt hm2_eth* [**config=**"__str__[,__str__...]"] [**board_ip=**__ip__[,__ip__...] ] [**board_rtnet=**__posix|evl__[,__posix|evl__...] ] [**board_mac=**__mac__[,__mac__...] ] [**firewall=**__auto|iptables|nft|none__]
1111

1212
*config* [default: ""]::
1313
HostMot2 config strings, described in the hostmot2(9) manpage.
1414
*board_ip* [default: ""]::
1515
The IP address of the board(s), separated by commas.
1616
As shipped, the board address is 192.168.1.121.
17+
*board_rtnet* [default: posix]::
18+
The real time ethernet implementation of the board(s), separated by
19+
commas. Use *posix* for PREEMT_RT. Use *evl* if you are running a
20+
Xenomai4 EVL kernel and have a supported network card.
1721
*firewall* [default: auto]::
1822
Selects the firewall backend used to isolate the dedicated interface.
1923
By default hm2_eth installs the rules itself; rtapi_app raises
@@ -124,6 +128,8 @@ hm2___<BoardType>__.__<BoardNum>__.packet-error-level (s32, out)::
124128
The error level is always in the range from 0 to packet-error-limit, inclusive.
125129
hm2___<BoardType>__.__<BoardNum>__.packet-error-exceeded (bit, out)::
126130
This pin is TRUE when the current error level is equal to the maximum, and FALSE at other times.
131+
hm2___<BoardType>__.__<BoardNum>__.packet-error-total (u32, io)::
132+
This pin shows the total package error count.
127133

128134
== PARAMETERS
129135

@@ -150,6 +156,16 @@ hm2___<BoardType>__.__<BoardNum>__.packet-read-timeout (s32, rw)::
150156
Setting this value too low can cause spurious read errors.
151157
Setting it too high can cause realtime delay errors.
152158

159+
== FUNCTIONS
160+
161+
hm2_eth.realtime-init::
162+
Realtime initialization function. This function initializes the realtime
163+
ethernet for *evl*. With *posix*, this function is not needed.
164+
It needs to be called once at startup using:
165+
....
166+
initf hm2_eth.realtime-init servo-thread
167+
....
168+
153169
== NOTES
154170

155171
hm2_eth installs firewall rules to control the network interface while

0 commit comments

Comments
 (0)