vcswatch reports that
this package seems to have a new changelog entry (version
1:2.10.0~pre2, distribution
UNRELEASED) and new commits
in its VCS. You should consider whether it's time to make
an upload.
Here are the relevant commit messages:
commit 187b6c47a41d8c47c47038b2623b977f2137e89e
Merge: 1e3ec760 28326ebd
Author: BsAtHome <bertho@vagrearg.org>
Date: Tue Dec 1 11:04:59 2026 +0100
Merge pull request #4890 from grandixximo/mdi-idle-stale-queue
task: MDI is not finished while motion has yet to act on the move
commit 1e3ec7604b4f241aec5df1116ca785228e584ec0
Merge: 60bc8784 db7d442d
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 01:59:56 2026 -0500
Merge pull request #4833 from grandixximo/emc-command-echo
python: send a command in about 1 ms rather than 20, and two task fixes it exposed
commit 60bc8784ce7924fcfdebfecbececa110ae930999
Merge: 619261a0 748cc2e0
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 01:46:12 2026 -0500
Merge pull request #4923 from zz912/pncconf-debounce-fix
pncconf: fix debounce HAL generation
commit 619261a09dcc75af5fac9c15909c9818ec8bbdbe
Merge: 03b11f97 1af86027
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 01:38:15 2026 -0500
Merge pull request #4889 from grandixximo/orient-axes-pr
kinematics: each type names the axes it orients the tool with
commit 03b11f97e8fb45a46a67439748c43933ae707b29
Merge: cbeb6ac5 9294449e
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 01:36:35 2026 -0500
Merge pull request #4888 from grandixximo/ui-smoke-src-dir
tests: ui-smoke stops when the sim config is not where it expects
commit cbeb6ac57e283d5e7c2ba5090c990fb0a76b972a
Merge: 53e091e4 69538ca4
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 01:22:56 2026 -0500
Merge pull request #4925 from smallwhiteawhite/fix-g28.2-reject-axis-words
rs274ngc: reject axis and polar words with G28.2
commit 53e091e49f7a30c080022ae13f3d14a13c7fad9c
Merge: 306dbc41 14eabb11
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 00:44:25 2026 -0500
Merge pull request #4926 from smallwhiteawhite/docs-g53-ccomp-radius
docs: clarify G53 error condition for cutter compensation radius
commit 306dbc414865a0785433471ec973fe714470982b
Merge: 92af01e1 afd033cd
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 00:42:17 2026 -0500
Merge pull request #4940 from grandixximo/hm2-eth-increment-doc
docs: hm2_eth packet-error-increment is added on a detected error
commit afd033cde8f7d0b3303127214bec02b007527bf8
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Dec 1 14:21:29 2026 +1100
docs: hm2_eth packet-error-increment is added on a detected error
The man page said the increment is added in a cycle without detected errors, copied from the decrement entry. record_soft_error() adds it when a read or write error is detected.
commit 92af01e1d31febf11df9dd90734982f3f780e0a3
Merge: 6805ce3c c146d784
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Mon Nov 30 22:21:17 2026 -0500
Merge pull request #4934 from BsAtHome/hal64_hm2_eth
hal: Update hm2_eth driver to use clean 64-bit HAL interface
commit 1af86027a06c0179e51134dd97c19aa969616c63
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sun Sep 27 00:40:59 2026 +1000
tp: cap a joint interpolated segment by the max velocity slider
The slider left joint interpolated segments alone, since they run in
joint units. It now caps the tool's chord between the ends, measured
as canon measures a straight move (X Y Z, else U V W, not at all for
the rotaries alone): the segment takes at least as long as the chord
would at the slider's speed. With the slider at 10 mm/s a G53.4 over
a 100 mm chord takes 10.07 s instead of 1.04 s.
tests/ptp-machine-frame runs a G53.4 over 100 mm with the slider at
100 mm/s: 1.0 s, where it took 0.07 s.
commit 81c3610f0f6aaae40dd61c396ae8d1940db189a8
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sun Sep 27 00:19:27 2026 +1000
tp: hold the joints when an abort stops a joint interpolated segment
The abort reset the planner onto its own position, which inside a joint
interpolated segment is the chord between the world ends, and forgot the
joints; the servo thread then inverted the chord point and the joints
jumped there in one cycle (on 5axiskins, pivot 400, Y at 166670 mm/s).
The joints the segment stopped on are now handed out as its end, and
the planner takes the point the servo thread found from them, so the
machine stays where it stopped.
tests/ptp-machine-frame aborts a G53.4 G1 under the tip with B turning
at 40 percent of the move and checks the joints are on their line, where
the chord point's inverse puts X 3 mm off.
commit 0ae57422ffc333a3e35f694c992203c91b35ac01
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Sep 26 22:35:50 2026 +1000
genserkins: build the Jacobian from the DH frames
compute_jfwd() converts every link to a quaternion pose twice and builds
the Jacobian through generic matrix calls: 0.9 us of the 1.2 us that
genser_jacobian() takes. Canon's segment cap takes one at every sample
of a move, and genser_inverse() one per iteration.
genser_jfwd_frames() chains the DH frames as rotations and origins and
takes each column as z_i x (o_n - o_i), z_i. It gives what compute_jfwd()
gives to within 3e-10 relative over 20000 random poses, in 0.12 us.
genser_jacobian() and genser_inverse() use it; genser_kin_jac_inv() and
genser_kin_jac_fwd() keep compute_jfwd().
With the puma560 genser config, adding a move near the wrist singular
pose falls from 153 to 71 us on average and from 207 to 93 us at most;
other moves fall from 36 to 22 us.
commit 5eb3ef9e3fb97d45c26ee238256fe83cefba61da
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Thu Sep 24 00:11:33 2026 +1000
G53.2 publishes the rotaries in the order the kinematics orients with
way whatever letters the machine gives its rotaries, as Fanuc and
Siemens number the rotaries first and second. #5071-#5076 carry X Y Z
and the three rotaries, #5077-#5079 are written 0.
kinematicsUserOrientAxes() answers up to three axes. A type with three
rotaries between tool and work, xyzacb_trsrn's A table and B C head,
gives all three, tables first, each group in joint order, or the three
letters its orient declares; a robot arm, whose joints all turn the tool,
gives the A B C of its pose. #<_kins_orient_3> and
before. G43.5 and the LINEAR check cover the third axis.
commit 0f2bb2614d3d78a6f53b5df8786e2ba1884315ec
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Sep 23 23:46:58 2026 +1000
switchkins: a module may declare several primary types
A machine with two tool heads, a saw blade and a waterjet say, has a
working transform per head and selects the head with G12.1. The loader
now accepts any number of types flagged primary; identity and machine
frame stay unique, since G13.1 and G49 resolve a single answer from them.
G43.4 and G43.5 stay on the type in force when it is primary, and from
any other type switch to the lowest numbered primary, which is the
single primary on every module that declares one.
tests/ptp-machine-frame gains a second head on slantkins (type 3, the
tip again, primary) and checks both rules.
commit a389764e39c0fed622a1500889f3f2c1be864ad4
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Sep 23 21:42:39 2026 +1000
Kinematics types name the axes that orient the tool
G43.5 wrote the pose it solved into A B C and refused A B C words beside
I J K, whatever axes the machine orients with. A kinematics type now
names them: kins_ops.orient gives the two letters, first rotation then
second, and left NULL they are the letters the joint map gives the two
joints that turn the frames, which is right for every module in the tree.
kinematicsUserOrientAxes() answers for the active type, with head or
table for each, from the frames: two heads or two tables in the order
toolFrameOrientJoints() gives, a table and a head the table first.
G43.5 writes the solution into those two letters and refuses a word of
either beside I J K, and G53.3 and G53.6 turn those two letters where
they turned A B C and left U V W behind; a type that orients otherwise,
a robot's three pose angles, keeps A B C. The interpreter exposes them as #<_kins_orient_1>,
whose type orients with an axis [AXIS_<letter>] TYPE makes LINEAR when
it first loads it.
commit fab48d3fb6b12d7239aa942ca78345461768fbf8
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Sep 23 21:32:53 2026 +1000
interp, canon: the multiaxis conversions follow [AXIS_<letter>] TYPE
The code #4730 added to the interpreter and canon still took A B C for
angles and X Y Z U V W for lengths: the machine pose and back
(interp_workplane.cc), the tool offset handed to the kinematics, the
point G43.4 and G49 re-anchor on, the words of G53.5, G53.7, G28.5 and
G30.5, and the check that a letter on the identity kinematics names a
joint of its own kind. They go by type now, as the rest does since
"Honor [AXIS_<letter>] TYPE in the interpreter and canon". Canon's
segment sampling counts the turn of every angular axis, not of A B C.
tests/axis-type runs G53.5 and G28.5 under G20 on its ANGULAR V, which
the interpreter now evaluates through trivkins with coordinates= given
in the INI.
commit 6805ce3cb609940675b585f65243bcd6f8df08a4
Merge: fddd366c 0b7128e0
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Mon Nov 30 20:29:00 2026 -0500
Merge pull request #4910 from BsAtHome/fix_rs274ngc-standalone
build: Reexport rs274ngc headers and re-enable interpreter compile test
commit c146d78452aa5062e5fdebf93cd2d67ab0ab0be4
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Sun Nov 29 15:12:49 2026 +0100
hal: Update hm2_eth driver to use clean 64-bit HAL interface.
commit fddd366c43d71e15addfe3bbd9a3ba2d55ee8786
Merge: c7b9cf8c b4101a87
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sun Nov 29 10:54:28 2026 +0800
Merge pull request #4914 from BsAtHome/hal64_sendkeys
hal: Update sendkeys to 64-bit clean HAL operation
commit 0b7128e0db53b3679619edd780462154f4ba10fe
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Fri Nov 27 13:06:48 2026 +0100
build: Reexport rs274ngc headers and re-enable interpreter compile test.
commit c7b9cf8c7f29482127d23e5e258fca9902c805a9
Merge: 6e614389 5a6725c2
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 21:59:15 2026 +0800
Merge pull request #4868 from dirkx/feat_g38_docs
Clarification to G38 commands
commit 5a6725c249f5a28ff08a340658d7323e60428c5b
Author: Dirk-Willem van Gulik <dirkx@webweaving.org>
Date: Sat Nov 28 14:18:10 2026 +0100
Update docs/src/gcode/g-code.adoc
Co-authored-by: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
commit d3a279aa9d869d1f7343d0e901b206c4be4ac3f7
Author: Dirk-Willem van Gulik <dirkx@webweaving.org>
Date: Sat Nov 28 14:17:56 2026 +0100
Update docs/src/gcode/g-code.adoc
Co-authored-by: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
commit 174f3946e8308f0d7c7d35044f2ea6664733469d
Author: Dirk-Willem van Gulik <dirkx@webweaving.org>
Date: Sat Nov 28 14:17:43 2026 +0100
Update docs/src/gcode/g-code.adoc
Co-authored-by: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
commit 6e614389e809fdb5fa26f47caa70da97a1c7c049
Merge: 2d474152 224c3318
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 20:49:25 2026 +0800
Merge pull request #4927 from Sigma1912/vismach_fix-slow-pan-before-rotation
Vismach: Fix slow panning before a rotation
commit b4101a87841fa387db4cc6f2f8818c74eddf9ec9
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Fri Nov 27 14:52:20 2026 +0100
hal: Update sendkeys to 64-bit clean HAL operation
fix: Don't busy-loop
fix: Signal handler cannot call exit()
commit 2d4741521e02aed9b9f9fa01328fe13858352e51
Merge: ca11d652 d53c6c07
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 20:24:10 2026 +0800
Merge pull request #4912 from BsAtHome/hal64_mb2hal
hal: Update mb2hal to use 64-bit clean HAL interface
commit ca11d652e236fb1bc6efc1da5a73e8d86397e0fc
Author: lyn1 <78355114+lyn1dev@users.noreply.github.com>
Date: Sat Nov 28 12:44:14 2026 +0100
docs: clarify that python task_state never returns STATE_OFF (#4905)
* docs: clarify that python task_state never returns STATE_OFF
* docs: clarify task_state return values and command behavior
commit 224c33188362d0aa473427ab2683bdccac205594
Author: David <mueller_david@hotmail.com>
Date: Sat Nov 28 11:03:38 2026 +0100
Vismach: Fix slow panning before a rotation
Panning the scene with the mouse is very slow before the scene is rotated.
Setting t.perspective = True during setup in main() right after
creating t (alongside t.distance = size * 3) makes panning immediately
use the same perspective projection as after a rotation.
commit 14eabb110d90a73a6e97872d1e297132ef7f2cb3
Author: smallwhiteawhite <1368582937@qq.com>
Date: Fri Nov 27 23:32:59 2026 -0800
docs: clarify G53 error condition for cutter compensation radius
In Interp::convert_straight(), G53 is only rejected when cutter radius
compensation is active with a non-zero compensation radius, since a zero
radius applies no offset and cannot break a compensated path. Update
docs/src/gcode/g-code.adoc to match this behavior.
Ref #4918
commit 69538ca421371130047fce7965770e2f4ac6ab0e
Author: smallwhiteawhite <1368582937@qq.com>
Date: Fri Nov 27 23:30:18 2026 -0800
rs274ngc: reject axis and polar words with G28.2
The G_28_2 branch in Interp::check_g_codes() was empty, so when a modal
motion mode such as G0 was active, a block like G28.2 P0 X1 was accepted
and queued both HOME_CYCLE_JOINT and a modal move in the same block
before position resync, contradicting docs/src/gcode/g-code.adoc.
Reject axis words (X-W) and polar coordinates (@, ^) on G28.2 blocks in
check_g_codes(), matching the adjacent G53.1/G53.2/G53.6 check, and add
regression tests under tests/interp/bad/.
Ref #4918
commit 748cc2e0b462508dc24ba167c66c6edb6a22ecd7
Author: zz912 <zz912@seznam.cz>
Date: Fri Nov 27 17:17:58 2026 +0100
pncconf: fix debounce HAL generation
commit 9fcedc2eab3148bac32406746776285f8295d758
Merge: 65b35c06 5dc3dd8a
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 11:46:51 2026 +0800
Merge pull request #4913 from BsAtHome/hal64_xhc-pendents
hal: Update the XHC pendents to 64-bit clean HAL operation.
commit 65b35c06c3ff52da7a274e5dd9d7863cccd7739c
Merge: dccd2b5f bd874e8c
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 11:46:05 2026 +0800
Merge pull request #4900 from grandixximo/tests-rt-delay-filter
tests: skip the realtime delay message in the multiaxis tests
commit dccd2b5f21ac795017e30d2d5c19b37f050de7ff
Merge: 1dfbd9d9 7d18e901
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 11:45:21 2026 +0800
Merge pull request #4916 from grandixximo/interp-word-checks
interp: word checks on G12.1, G53.x and G68.x
commit 1dfbd9d9ba614993f393a70a96d43ce37099d72a
Merge: 788ef4e5 8e936948
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 10:07:51 2026 +0800
Merge pull request #4909 from grandixximo/ci-drop-ms-repo
CI: drop the runner image's packages.microsoft.com source
commit 5dc3dd8aaaa357ed7bef5e159719fc2892dc70de
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Fri Nov 27 14:47:43 2026 +0100
hal: Update the XHC pendents to 64-bit clean HAL operation.
commit d53c6c07371dc45750556d6cb590ccb600e06fc2
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Fri Nov 27 14:43:48 2026 +0100
hal: Update mb2hal to use 64-bit clean HAL interface.
commit 7d18e90117c27d78b02221cdd7901bedcc1c36a2
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sat Nov 28 00:33:40 2026 +1100
interp: word checks on G12.1, G53.x and G68.x
Five words these codes took silently, found in the list on #4908:
- G12.1 rounded P before checking it, so P-0.4 selected type 0 and P1.6 type 2. P must now be a whole number.
- G53.1, G53.2 and G53.6 refused X to W but not the polar words @ and ^, which then made the block a G0 move.
- G53.7 needed G0 or G1 on the line: `J<n>=` words did not count as a destination, so the G0 or G1 in force was never picked up, unlike G53.4 and G53.5 and against the docs.
- G68.2, G68.3 and G68.4 took the axis words even when G52, G92, G10 or G28 on the same line already had them: "G68.2 I0 J30 K0 G52 X10" used the X10 twice and put the plane at X20.
- G68.3 ignored A, B, C, U, V and W: the check sat in the G68.2 and G68.4 builder only. It now runs for all three.
Tests: new cases in tests/interp/g68-words and tests/interp/bad, and a G53.7 move under the G0 in force in tests/twp-native-ptp. Each fails on master.
commit 8e936948092849abe09f4ce42ae17d89e345ebd9
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Fri Nov 27 22:49:14 2026 +1100
CI: drop the runner image's packages.microsoft.com source
Its 403 on 2026-11-27 failed apt-get update. We install nothing from it.
commit 484f77b90cb5b091a8cf64e5bf473763bababc19
Author: Dirk-Willem van Gulik <dirkx@webweaving.org>
Date: Fri Nov 27 13:03:17 2026 +0100
Update docs/src/gcode/g-code.adoc
Co-authored-by: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
commit 788ef4e5d3b809aab12db860ed9f111063ddf8b8
Merge: 48233404 9c59e59c
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Fri Nov 27 14:02:25 2026 +0800
Merge pull request #4899 from grandixximo/interp-kins-canon
interp: get the kinematics and HAL values from the canon
commit 48233404ef924f9f589f0635e80040f1a2c09941
Merge: efdbf14c fc8b7aaa
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Fri Nov 27 13:20:03 2026 +0800
Merge pull request #4903 from Ash-Pera/genhex-screw
genhexkins: screw-lead rates in the forward and the Jacobian, and NaN handling
commit efdbf14c1e9328f311662b4e900185832f98b928
Merge: 71b3a499 84403bad
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Fri Nov 27 06:26:43 2026 +0800
Merge pull request #4906 from weblate/weblate-linuxcnc-linuxcnc-docs
Translations update from Hosted Weblate
commit 84403bad37fb92b2f8c2f2daf7e5b12205cacab4
Author: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Date: Thu Nov 26 16:55:18 2026 +0100
Translated using Weblate (Portuguese)
Currently translated at 45.3% (15401 of 33994 strings)
Author: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Co-authored-by: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/linuxcnc/linuxcnc-docs/pt/
Translation: LinuxCNC/LinuxCNC Documentation
commit 6c13da70a0ab6c7eba14ce7d5d37887801e2fafa
Author: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Date: Thu Nov 26 16:55:18 2026 +0100
Translated using Weblate (Spanish)
Currently translated at 36.3% (12370 of 33994 strings)
Author: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Co-authored-by: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/linuxcnc/linuxcnc-docs/es/
Translation: LinuxCNC/LinuxCNC Documentation
commit 71b3a4998ed3030249551e6cb86d06782ff6aab9
Merge: 8dd7b3bf 0bcc78d1
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Thu Nov 26 19:09:53 2026 +0800
Merge pull request #4759 from grandixximo/merge-2.9-nov
Merge branch '2.9'
commit 4040959cd5377e773e17e46545c57b15a18c5b09
Author: Dirk-Willem van Gulik <dirkx@webweaving.org>
Date: Wed Nov 25 16:42:02 2026 +0100
Add an example & correct 3/5 not aborting on a normal error
commit fc8b7aaa9acca0eb955311cf78e1e68b9149ffc7
Author: Ash-Pera <ashley.pera@colorado.edu>
Date: Tue Nov 24 17:05:46 2026 -0700
genhexkins: screw-lead rates in the forward and the Jacobian, NaN handling
The forward tested its errors for convergence with >, which is false for
a NaN, and after the step, so it returned a NaN pose as success where the
seed already fits and a strut length is NaN, or the Jacobian is singular,
as with no lead and the platform turned 90 degrees at home, or flat in the
base's plane. Require the step to be finite. A NaN length difference
makes it NaN.
With genhexkins.screw-lead set, each strut length carries a correction
that changes with the pose, but the forward's Newton step left its rates
out of the Jacobian rows. Over the 600 poses of tests/genhexkins-forward
with a lead of 5, each seeded a cycle away, 455 did not converge within 8
iterations; at the default limit of 120, 24 still did not and 9 came back
off the pose. Add the rates to the rows, as the gradient of the twist
about the strut; none of the poses takes more than 5 iterations.
From a seed well off, as the one from home after a failure, a full step
can lead to another pose that has the same strut lengths, or not converge.
With a lead set, shorten a step that moves roll, pitch or yaw by more than
0.2 radian. One cycle away the steps are almost always shorter than that.
genhex_jacobian() differenced the inverse when a lead was set. It takes
the same rates now, in closed form, and tests/kins-jacobian's lead-5 case
checks them.
The correction was asin() of the sine of the twist, taken as the dot
product of two normalised vectors. At a quarter turn rounding can carry
the product past +-1, and asin() is NaN, in the strut lengths of the
inverse or in a step of the forward. Next to one asin() loses half the
digits, and the forward takes more iterations. Take atan2() of the
twist's sine and |cosine|, which is the same angle and does neither.
tests/genhexkins-forward checks a NaN strut and a singular Jacobian, and
its own comparison now fails on a NaN pose rather than pass it. It runs
its grid a second time with a lead of 5, with three far poses from home
that need the shortened step, and 2049 poses next to a quarter turn, where
621 failed with the rates but with asin(), on amd64. It also pins the
correction of a strut past a quarter turn.
commit 8dd7b3bffd1acaead281877461b34ad3995fdd45
Merge: a1acc061 60c1a6d4
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Nov 25 05:15:34 2026 +0800
Merge pull request #4901 from weblate/weblate-linuxcnc-linuxcnc-docs
Translations update from Hosted Weblate
commit 60c1a6d4f6da01087925e19b9ceb075c7b65d1bb
Author: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Date: Tue Nov 24 19:41:15 2026 +0100
Translated using Weblate (Portuguese)
Currently translated at 45.1% (15350 of 33994 strings)
Author: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Co-authored-by: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/linuxcnc/linuxcnc-docs/pt/
Translation: LinuxCNC/LinuxCNC Documentation
commit f0c7b19b39ef2c9244a0e75da3b7d2a8ceec92ab
Author: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Date: Tue Nov 24 19:41:14 2026 +0100
Translated using Weblate (Spanish)
Currently translated at 36.3% (12363 of 33994 strings)
Author: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Co-authored-by: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/linuxcnc/linuxcnc-docs/es/
Translation: LinuxCNC/LinuxCNC Documentation
commit a1acc061c2bed9101e313248c3647e8f5cc45001
Merge: 2a12738c 3bcd6b3a
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 22:47:37 2026 +0800
Merge pull request #4892 from BsAtHome/hal64_vfds
hal: Update VFD drivers to be 64-bit clean
commit 9c59e59cc11f962053af9b3303120f2be91c73c1
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Nov 25 00:09:45 2026 +1100
canon: read _hal[] in the canons, replay EXIT_CANON in canterp
hal_get_number() put an interpreter-specific lookup in the HAL query API. Task and the preview module now read the pin, signal or param themselves with hal_get_p() and hal_get_s(). canterp replays EXIT_CANON as it does INIT_CANON.
commit 0bcc78d146b39ae806023e7c7882b74267cd51db
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Sun Nov 1 17:43:02 2026 +0800
tests/gcode-renderer: a stopped parse now raises KeyboardInterrupt
The 2.9 gcodemodule fix in this merge lets the callback's own exception propagate instead of masking it as RuntimeError. parse_failing caught only Exception, which let KeyboardInterrupt escape the stopped-parse tests.
commit 4c60ccef4fcf5710b552c3eabb3fc475658107f8
Merge: 2a12738c 706b4a5a
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 23:44:40 2026 +1100
Merge branch '2.9'
# Conflicts:
# docs/src/remap/remap.adoc
# src/emc/task/emctaskmain.cc
# src/emc/usr_intf/gremlin/gremlin.py
# src/hal/user_comps/xhc-whb04b-6/hal.cc
# src/hal/user_comps/xhc-whb04b-6/usb.cc
commit 3bcd6b3aecff08b7f6e03182a397b6500731bb5a
Author: Bertho Stultiens <bertho@vagrearg.org>
Date: Mon Nov 23 14:55:44 2026 +0100
hal: Update VFD drivers to be 64-bit clean.
commit bd874e8c03c3cfcf9b2841a85000d6952810a119
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 23:28:27 2026 +1100
tests: skip the realtime delay message in the multiaxis tests
On the rtpreempt buildbot a late servo period puts "Unexpected realtime delay" on the error channel. twp-table, twp-table-one-sided, ptp-machine-frame, twp-native and twp-native-ptp report every error message, so they failed on it. twp-native and twp-native-ptp also took it as the refusal of a command they expect to be refused, and the real refusal then showed up as an error at the next check.
Read the channel through a poll() that skips that message, as tests/kins-switch does.
Tested with a temporary hook in rtapi that posts the message after N periods: with N from 300 to 5000 the old scripts fail (2 to 5 of the 5 tests), the new ones pass.
commit 87c90f673980f501e7ad599827070336903fc072
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 23:10:49 2026 +1100
tests/interp/compile: bring the stub canon up to the current interface
The stub lacked 17 canon calls added since the test was disabled, plus the two GET_EXTERNAL_ calls added here. Built against the internal headers it links -lrs274 alone, runs under LD_BIND_NOW and prints what expected holds. It stays skipped until the interpreter headers are exported to include/.
commit b67d3305aec7a9bb9a7473d1d79b894662c02243
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 23:10:49 2026 +1100
interp: reach HAL only through the canon
The interpreter loaded the machine's kinematics module itself, on a HAL component of its own, and #<_hal[name]> read HAL directly, so librs274 linked liblinuxcnchal and libkinslimits and the interpreter owned a HAL component's lifetime.
The canon now answers both. GET_EXTERNAL_KINEMATICS() loads a module for each caller on the canon's HAL component and hands it out with a table of the calls on it, KinematicsUserOps; the interpreter keeps both in its setup and frees the module through the table at exit, before the new EXIT_CANON() lets the component go. GET_EXTERNAL_HAL_VALUE() reads a pin, signal or param through a new hal_get_number(). Task and the preview module answer both; sai has no machine and no HAL. librs274 no longer links liblinuxcnchal or libkinslimits.
commit 2a12738cf97f4987c63d99e08db75f1522ab6a47
Merge: df134316 140edfd8
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 20:10:33 2026 +0800
Merge pull request #4891 from grandixximo/interp-exit-release
interp: let go of the kinematics HAL component at exit
commit 706b4a5a1094b36292cf2773fcc551c0cdad6710
Merge: 04d20401 9784eafe
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 20:06:43 2026 +0800
Merge pull request #4838 from hansfbaier/xhc-whb04b-6-libusb-reconnect
xhc-whb04b-6: bound the display control transfer timeout
commit 9784eafe8657ecd23b7f972df8544c31ddc080e9
Author: Hans Baier <foss@hans-baier.de>
Date: Tue Nov 24 18:28:16 2026 +0700
xhc-whb04b-6: recover from a stalled display transfer
sendDisplayData() sent each display block with a timeout of 0, which libusb
reads as "wait as long as it takes". That call runs on the thread that pumps
libusb events, so a receiver that stops completing the transfer freezes the
whole component - jog dial included - while whb.pendant.is-connected stays
TRUE until the receiver is unplugged.
Bound the transfer to 1 s and report the failure through transferFailed, the
flag Usb::process() already watches: it closes the device, sets mDoReconnect,
and the component's outer loop re-enumerates.
The second half is needed. The error branch only set mDoReconnect, which is
read in Usb::init(), and init() is reached only after process() returns, which
needs isDeviceOpen() - that is, deviceHandle - to be null. Nothing on the
display path cleared it, so the loop retried the stalled write once per pass
with the connection still reported healthy. A timed-out IN transfer is an idle
tick and never sets transferFailed either, so a receiver that stops answering
the HID control pipe produced no failure at all.
Checked without hardware, against a stub libusb reporting a phantom receiver
that times the IN transfer out every 750 ms like an idle pendant and returns
LIBUSB_ERROR_TIMEOUT from the control transfer after 40 calls: with the
timeout alone the log is 47 "transmission failed, try to reconnect ..." lines
in 12 s and nothing else; with transferFailed it goes to "connection lost,
cleaning up", the 3 s pause, re-enumeration, claiming the interface and
"enabling reception ... ok". Field test on hardware is still outstanding.
commit df134316350058249cfa81df2e596b7aea4c0a6e
Merge: ec089038 85da88d9
Author: BsAtHome <bertho@vagrearg.org>
Date: Tue Nov 24 11:46:22 2026 +0100
Merge pull request #4895 from grandixximo/rtapi-sigpipe
rtapi_app: ignore SIGPIPE
commit ec0890388eb023dfcf6bfa65387a46233a6bc29c
Merge: ec905685 378b95d8
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 18:28:42 2026 +0800
Merge pull request #4830 from rene-dev/task-tool-map
Tools by number: interpreter lookup, tool table owned by task
commit ec905685fbd7583a87611f5dbf20358834ee4847
Merge: fab20072 7c570a56
Author: BsAtHome <bertho@vagrearg.org>
Date: Tue Nov 24 10:46:18 2026 +0100
Merge pull request #4896 from grandixximo/thread-start-race
hal: read threads_running once per thread pass
commit 378b95d874aea9dec32980ff9cf9052b3dc3d9b3
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 15:44:54 2026 +1100
gcodemodule: pass set_tool_table_entry() keywords with py::arg
cppcheck reads "orientation"_a=orientation as an integer assigned to a
pointer (AssignmentIntegerToAddress) and fails the CI job. py::arg()
gives the same keyword call.
commit f4ea91b953a1d7718df3d78728699ca94f0294d6
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 03:21:20 2026 +0100
touchy, mtconnect: take a tool's pocket from its tool table entry
Touchy's status page showed a tool's position in stat.tool_table as its
pocket, which it is only on a random toolchanger. The MTConnect source
asked toolinfo() for the pocket of every tool, as the entries had none,
and listed the loaded tool of a non-random toolchanger twice: once from
the spindle's copy of its entry.
Both go by tool number and the entry's pocketno now, so neither depends
on how stat.tool_table is laid out.
commit 30bed2e77444c0bee67bf622e36befb7e23a00b8
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 03:08:43 2026 +0100
docs: what LinuxCNC reads from and writes to the tool table file
The tool table section says which lines are skipped and reported, that
a line without P is a tool in pocket 0, that only a random toolchanger
needs every pocket number once, and in which order the file is written.
commit e3917b021f22ca3945b12a2f27b1db201575074f
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 03:08:43 2026 +0100
tests: tooldb helper looks a tool up by number, not by position
tool_table_zoffset() read stat.tool_table[toolno], which is the tool only
while the table lists the tools in the order of their numbers.
commit 8d62d08239fc756c7354be55d204a93a49baa617
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 02:46:55 2026 +0100
preview: get_tool() answers with named fields, not a 15-tuple
The canon's get_tool() returned a tuple that gcodemodule read by
position, the pocket number second. Master's layout has it last, as a
stat.tool_table entry has, so a canon that passed such an entry through
was misread without an error.
The fields are read by name now, those of a stat.tool_table entry.
rs274.interpret.Tool is a namedtuple with the same fields for a canon
that makes its own entries; Tool() is a tool that is not in the table. A
plain tuple is refused. set_tool_table_entry() gets the entry's values
as keywords with the same names.
commit 38587508d91bdfd24edb3f1a729e41618ca4e1d4
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 02:28:33 2026 +0100
interp: say why synch keeps selected_tool when nothing is prepared
selected_pocket is -1 then and selected_tool still the last T word,
which looks like an oversight. It is not: stdglue's change_epilog takes
the new current_tool from selected_tool after the M6 in the remap's body
has run and synched.
commit 6dce1db6812c07201269278ec1ffa318629df2dc
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 02:28:33 2026 +0100
task: export a reloaded tool table once, with the spindle's entry
Reading the table cleared a non-random changer's spindle entry and
exported that, and the entry of the loaded tool was put back and
exported after it. A reader of stat.tool_table could see the spindle
empty in between, and tool_table_serial counted twice. read() is told
which tool is loaded and exports the table once.
commit 7acb6b3bfd59aee4e1153faa37a5de79abe87a5c
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 24 02:28:15 2026 +0100
task: report every tool table line that the next save drops
Tools beyond the table's size, a pocket number out of range and a random
changer's tool whose pocket a later line takes were reported on stdout
or stderr only. They are gone from the file the next time it is written,
so the operator is told, as for a tool number that is there twice.
commit 287e083dc5049414468839bf2bc8db573e997af7
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 17 14:40:51 2026 +0100
tests, docs: tool table file, offsets and G10 read ahead
New tests/tool-info/pocket-numbers/nonrandom-table: the order of the
tool table file is kept, a duplicate tool is reported to the operator,
tool_offset() keeps the offsets it does not set, and a G43 read right
after a G10 L1 gets the new offset.
tests/interp/preview-tools gets a non-random case that starts with a
tool loaded.
The updating notes list the changes to what is read from a tool table
file, M6 with a prepared tool that is gone, and the offsets
EMC_TOOL_SET_OFFSET keeps.
commit 2d64a239f239cc2408c076418937a1206f268667
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 17 14:40:51 2026 +0100
interp: keep G10 L1/L10/L11 edits until task has stored them
G10 L1/L10/L11 waited for task to store the change (tooldata_flag), so
that a later G43 saw it. In a Python remap that runs G10 and then G43
through self.execute() that wait is not possible: the G43 got the old
offset, or 'Queue is not empty after changing the tool table'.
The interpreter now keeps the entries it has set (_setup.tool_edits) and
its tool lookups take them from there, until it rereads the machine's
state, when task has stored them or an abort has dropped them. G10 no
longer stops the read-ahead, as before the interpreter lost its tool
table copy.
commit 2f0b4b02fae71a33a729f60af2054d14634938e2
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 17 14:40:51 2026 +0100
task: tool table keeps the file's order, merges offsets, exports as a whole
Review of #4830:
- A non-random changer's tools stay in the order the tool table file has
them, in the file task writes and in stat.tool_table, as before task
owned the table. They were sorted by tool number.
- A line that is skipped and so dropped from the file at the next save
(a tool number that is there twice, no tool number) is reported to the
operator, not only on stderr.
- EMC_TOOL_SET_OFFSET keeps the values its sender did not set: they are
constructed as NaN (orientation -1), and task leaves those as the tool
table has them. tool_offset() no longer zeroes Y, A, B, C, U, V and W,
linuxcncrsh and emcsh no longer X, the angles and the orientation.
- The export to the tool mmap is written under one lock, and
stat.tool_table copies it under one: a reader saw tools twice or
missing while the table was reloaded.
- cppcheck: spindle_entry is initialized in the initialization list.
commit 0110dab5e0d0f479c2f6edecbf217ba1cb86f4d6
Author: Rene Hopf <renehopf@mac.com>
Date: Wed Nov 11 04:06:24 2026 +0100
task: keep the tool table in task, export it to the tool mmap
Task kept the tool table in the tool mmap and worked on it by index: it
looked a tool's index up, read the entry, changed it and stored it back.
The table's layout, with the spindle's entry at index 0 and a non-random
changer's tools in file order, was the data model.
Task now owns the table as a ToolTable, a map of the tools by tool
number, which knows where a tool is: in a pocket or in the spindle.
Reading and writing the tool table file and taking the tool database
program's lines move into it; tooldata_load(), tooldata_save(),
tooldata_read_entry() and tooldata_get_tool() are gone. The canon's
GET_EXTERNAL_TOOL() asks it.
Every change is exported to the tooldata storage, by index as before, so
linuxcnc.stat.tool_table, stat.toolinfo() and halui keep working. Nothing
reads the export back. Only the entries that changed are stored; a
reload used to clear the whole table first.
The status gets toolTableSerial (stat.tool_table_serial), which counts
the changes, so a reader can tell when the table is not the same.
What changes for a tool table:
- A tool number is in the table once. Of several lines with the same
tool number the first is used, the others are skipped with a warning
and are not written back. The first was the one found before, too.
- A non-random changer's tool table file is written in the order of the
tool numbers, not in the order it was read, and its tools are exported
in that order. A random changer's is written by pocket, as before.
- A line without a P word is a tool in pocket 0. On a non-random changer
it was read into the spindle's entry.
- A line without a tool number is skipped. It took up an index.
- An indented comment, a line with only blanks before the ';', is a
comment. It was read as a tool without a number in pocket 0, which on
a random changer took the place of the tool in the spindle.
commit 7e5ce8286787f71f2a711f613d1a2e806c2144b0
Author: Rene Hopf <renehopf@mac.com>
Date: Wed Nov 11 00:06:48 2026 +0100
sai: keep the tool table in a map, by tool number
The interpreter asks its canon for a tool by number, and that is all the
standalone interpreter needs a tool table for. It kept one in a tool mmap
of its own all the same, in a temporary file, with a second variant for
the TOOL_NML build.
Keep the tools in a std::map instead. The tool mmap, its temporary file
and the TOOL_NML case are gone from sai.
To read the tool table file, split the parsing of a line out of
tooldata_read_entry() as tooldata_parse_line(), which stores nothing.
tooldata_read_entry() keeps the choice of the index and the store.
Of two lines for one tool number the first still counts. The table is no
longer limited to CANON_POCKETS_MAX tools.
commit a66f028acfe377c667cf0f2efadeb9b5b95c4867
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 21:24:10 2026 +0100
stdglue: set current_tool when a remap changes the tool
The M6 remaps called set_tool_parameters() with the interpreter still
holding the old tool as the one in the spindle, so #5400-#5413 showed
the old tool until the tool change had run.
Docs: assigning current_pocket or selected_pocket just stores the pocket
number now, so the notes about the lookup it did go; the preview canon's
set_tool_number() and what EMC_TOOL_SET_OFFSET stores are described.
commit 4fc2d2106e420d42497bc2d60bcb03b1578d1ea2
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 21:24:10 2026 +0100
preview: tell the canon about M61
CHANGE_TOOL_NUMBER did not reach the Python canon, so StatMixin's tool
table did not follow an M61: on a random changer the pockets of the
tools it swaps stayed as they were. The canon's optional
set_tool_number(toolno) is called now, and StatMixin implements it.
commit 22bae9254661557bb9f63f01b4adea2d655a2e34
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 21:24:10 2026 +0100
task: refuse to set tool 0's entry, report a prepared tool that is gone
EMC_TOOL_SET_OFFSET for tool 0 on a non-random changer found the
spindle's entry and set the loaded tool's copy without its entry in the
table. Tool 0 is no tool there; it is now an error.
M6 with a prepared tool that is no longer in the tool table did nothing
and reported success. It is an error now, also if the tool goes while
the tool changer is changing.
Document that linuxcnc.command.tool_offset() sets the whole entry.
commit dd30b5826d2dbbfcfb6205d70754b1bced83a823
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 21:24:10 2026 +0100
interp: the selected tool is the one the tool changer has prepared
synch() took selected_pocket from the machine but left selected_tool at
the last T word read. Since M6 takes the tool it loads from
selected_tool, a T word that was read ahead and then aborted made the
next M6 use that tool's data for #5400-#5413 and for a G43 on the same
line (or RETAIN_G43), while the tool changer loaded the tool it had
prepared. synch() now takes selected_tool from the machine too.
M6 decides that it unloads (T0 on a non-random changer) from the
selected tool number, not from a pocket number of 0, which a tool may
have.
tests/tool-info/pocket-numbers/nonrandom-abort aborts a program whose
T10 is held back by a dwell, with T1 prepared, and runs M6 G43.
commit c9fd5945df6b7dc685fff2033173f79b0c448a1c
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 02:41:31 2026 +0100
interp: look tools up by number instead of keeping a tool table copy
The interpreter kept its own copy of the tool table, indexed by the
tooldata index, reloaded it slot by slot through GET_EXTERNAL_TOOL_TABLE,
and also read the tool mmap directly to find a tool's index. It now asks
the canon for a tool by its number when it needs one:
- GET_EXTERNAL_TOOL(toolno) returns the tool's entry (toolno -1 if it is
not in the table), with its pocket number.
- GET_EXTERNAL_TOOL_IN_SPINDLE() and GET_EXTERNAL_SELECTED_TOOL() replace
GET_EXTERNAL_TOOL_SLOT() and GET_EXTERNAL_SELECTED_TOOL_SLOT(), using
tool numbers.
_setup.current_pocket and selected_pocket now hold pocket numbers, as
Python and the named parameters show them, and _setup.current_tool keeps
the tool in the spindle. Only that is kept, since the interpreter reads
ahead of the machine; it is reread after a tool change.
G10 L1/L10/L11 now waits for the change to be stored (tooldata_flag), so
a later G43 or lookup sees it. That wait does not reread the position.
It refuses to run with cutter compensation on, as the docs already said.
librs274 no longer links libtooldata. Task and sai answer the lookups
with the new tooldata_get_tool(); sai no longer keeps a spindle copy.
Preview: gcodemodule asks the Python canon get_tool(toolno) for a
15-tuple that includes the pocket, get_tool_in_spindle() for the tool
loaded at the start, and passes G10 edits to set_tool_table_entry().
StatMixin implements them from linuxcnc.stat, keyed by tool number, and
follows a random changer's pocket swaps. stat.tool_table entries gain a
pocketno field.
Python remaps lose self.tool_table and self.load_tool_table(); use
emccanon.GET_EXTERNAL_TOOL() and self.current_tool.
New test tests/interp/preview-tools runs T, M6, G43, G43 H, G10 L1 and
M61 through gcode.parse with StatMixin on both changer types.
commit 5ec275b62cb68925946987d1440ec666a35f3c57
Author: Rene Hopf <renehopf@mac.com>
Date: Tue Nov 10 03:15:15 2026 +0100
task: keep the prepared tool by its number, not its tool table index
Task kept the tool table index of the tool being prepared and of the
prepared tool between T and M6. It now keeps their tool numbers, and
looks the index up when it loads the tool, so a tool table reloaded in
between (G10 L0) cannot leave it pointing at another tool. set_prepped()
takes the tool number. A T word for a tool that is not in the table now
clears the prepared tool instead of keeping the previous index.
commit d6b68cf73be49e82f086ba339165c09fcc557f7b
Author: Rene Hopf <renehopf@mac.com>
Date: Mon Nov 9 18:53:24 2026 +0100
tools: address a tool by its number, not its tool table index
SET_TOOL_TABLE_ENTRY() and EMC_TOOL_SET_OFFSET named the entry to set by
its position in LinuxCNC's internal copy of the tool table. They now
take only the tool number, and task finds the entry. On a non-random
changer task also updates the spindle's copy when the tool is loaded, so
the interpreter's second SET_TOOL_TABLE_ENTRY(0, ...) for that goes.
EMC_TOOL_SET_OFFSET senders that set only the tool number -
linuxcnc.command.tool_offset(), halui, linuxcncrsh - left the index at
0, so they overwrote the spindle's entry whichever tool they named.
They now set that tool.
EMC_TOOL_STAT.pocketPrepped, and so linuxcnc.stat.pocket_prepped, was
the prepared tool's index; it is now its pocket number, as
iocontrol.0.tool-prep-pocket shows it. The new toolPrepped
(stat.tool_prepped) is its tool number. Task keeps the index to itself,
and the interpreter looks it up from the tool number. gscreen and
touchy, which looked the prepared tool up in stat.tool_table by that
index, use stat.tool_prepped.
sai's CHANGE_TOOL used the selected tool number as its slot; it looks
the index up too.
The sai output of G10 L1/L10/L11 loses the index and the second call;
reload-tool/non-random expects pocket numbers in pocket_prepped.
commit 85da88d9c320da827aad955661f9aefe8bd0f4b3
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 14:23:34 2026 +1100
rtapi_app: ignore SIGPIPE
When the reader of rtapi_app's stderr went away, for example
halrun x.hal | grep -q pattern, the next message killed the master with
SIGPIPE. If it held the HAL mutex at that moment, every later halcmd
spun on the mutex forever. Bertho Stultiens hit this as a hang in the
tests/virtual-time test of #4893 under load.
Ignore SIGPIPE at the start of main(), so the master and every client
get EPIPE from the write instead.
tests/uspace/closed-stderr runs halrun with a stderr pipe that has no
reader: before the fix halrun exits 141 and leaves the shared memory
behind, with it the thread is created and halrun exits 0.
commit 7c570a561e1f4c0690fbb695d8fb6013d770b406
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 14:23:34 2026 +1100
hal: read threads_running once per thread pass
thread_task() read hal_data->threads_running twice: once to decide on
the init pass, once for the cyclic pass. A start that lands between the
two reads runs the cyclic functions once before the init functions, and
the init pass that follows runs no cyclic functions, so that cycle is
missing for every function on the thread.
Read it once per pass.
Seen with the virtual time of #4893 under load: timedelta reported
a maximum of two periods in about one run out of a hundred, none in
130 runs with the fix.
commit fab20072fdf31b6c6687284b5f3132b77ff7edcc
Merge: 65f74679 88612250
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 15:43:25 2026 +0800
Merge pull request #4897 from grandixximo/ci-apt-mirrors
CI: pick the fastest apt mirror, retry slow downloads, cache the debs
commit 886122509c368dd0b9def8a0020ce5ad5b7b931b
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 18:02:51 2026 +1100
CI: pick the fastest apt mirror, retry slow downloads, cache the debs
The runner image now points apt-mirrors.txt at us-east-2.ec2.archive.ubuntu.com with priority:1, so the azure rewrite from #4336 no longer matches anything and the check for leftover azure URLs still passes. Jobs on the host fetched at 9 to 200 kB/s and many were cancelled at timeout-minutes during "Install dependencies".
Time a 1 MB ranged download from archive.ubuntu.com, azure, mirrors.edge.kernel.org and the image's mirrors in parallel (15 s cap, about 3 s in practice) and rewrite apt-mirrors.txt fastest first, numbering every entry's priority so apt follows that order. Fail if ubuntu.sources stops using the list or an Ubuntu archive host appears outside it.
apt only moves to the next mirror on errors, not on a slow one, so apt-get-retry.sh runs the download with a 10 minute timeout and rotates the list before trying again; files already fetched are kept. dpkg runs afterwards from the cache and is never killed.
The host jobs download about 300 MB of build dependencies, which took 22 minutes on 2026-11-23 even without a stall. Keep the .debs in ~/apt-archives with actions/cache, keyed on the ISO week and the debian control templates, and copy them into apt's archive dir before installing. apt then only fetches what changed. rip-headless restores the same cache but does not save it, as its packages are a subset.
Tested in bwrap with a stand-in /etc/apt and stubbed sudo and apt-get: the probe against the real mirrors plus an unresolvable one (scored 0, listed last), rotation over failed download attempts, the cache restore and save, and the layout checks. Not yet run on a runner.
commit 140edfd82d0b1d27e9139e5014cda0be07f3efba
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 01:29:29 2026 +1100
interp: mark no kinematics HAL component with -1, not 0
HAL component id 0 is valid, so 0 cannot stand for "none". Start kins_comp_id at -1 and release any id >= 0.
commit 04d204015e4846ff5312356b0a2278e5f4c63c74
Merge: acd2daf2 d2576284
Author: andypugh <andy@bodgesoc.org>
Date: Mon Nov 23 14:11:51 2026 +0000
Merge pull request #4761 from hdiethelm/xhc-whb04b-6-fix-v2_backport-2.9
xhc-whb04b-6 fixes backport to 2.9
commit 0bce16e4011996bff32de7e2debf6fbca5c76c9d
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 01:08:51 2026 +1100
interp: let go of the kinematics HAL component at exit
The interpreter attaches a HAL component, `interp.<pid>`, the first time
it evaluates the kinematics, and releases it only in its destructor.
Task exits without destroying the interpreter, so the component
outlived milltask and the linuxcnc script's shutdown waited out its
2 s loop for it. Interp::exit() now releases it; a later use loads it
again.
tests/ptp-robot, which evaluates the kinematics, takes 1.9 s instead of
3.9 s.
commit 28326ebd748f53c188eb62d36bc7b91f7d6cc7d2
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 24 00:43:03 2026 +1100
task: MDI is not finished while motion has yet to act on the move
mdi_execute_hook() set the interpreter idle once nothing was left to
issue and the motion queue read empty. Motion acknowledges a move in
its command handler, but the queue depth is published by the
controller, which runs later. A status copy read in between, or kept
after a failed read, still shows an empty queue, so task reported the
MDI command finished one cycle after sending the move. A client
waiting for interp_state to go idle then read the position mid-move;
seen on CI in tests/interp/g28.2/invalid-pword.
Use motion.status instead, which already reads EXEC until the
controller has run after the last command.
tests/stale-motion-status now sends MDI moves after the program and
fails if the interpreter reads idle before a move is done. The
late-controller variant fails on every move without the fix.
commit 9294449edd4a31e9e7dbbca8e56bae04c3797a77
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Mon Nov 23 22:57:10 2026 +1100
tests: ui-smoke stops when the sim config is not where it expects
If the cd in SRC_DIR="$(cd ... && pwd)" fails, SRC_DIR is empty and
cp -r "$SRC_DIR/." copies / into /tmp. Use realpath -e and exit when
the config is missing (suggested by Bertho).
commit 65f7467903029174dae789b7f89d5251ccdf8650
Merge: b0ce17db a4982e6b
Author: BsAtHome <bertho@vagrearg.org>
Date: Mon Nov 23 10:59:38 2026 +0100
Merge pull request #4883 from Josbleuet/opto_ac5-uspace
opto_ac5: bring the driver back, ported to uspace
commit b0ce17db380a7f71098f3f7eb612ea0a12019595
Merge: 49d14cb6 a8ec16a1
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Mon Nov 23 16:25:22 2026 +0800
Merge pull request #4842 from grandixximo/kins-limits-pr
kinematics: the limits mean the joints and the carriage, whatever kinematics is in force
commit a8ec16a145bcf3c567f5b45c5d2ec410112feee9
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Tue Nov 17 12:54:49 2026 +1100
build: drop the motion_planning header copy into include/
The Submakefile copied jacobian.hh and joint_limits.hh into include/ and added them to HEADERS, but nothing depends on HEADERS, so the copy never ran, and since #4852 HEADERS is no longer what gets installed. The headers are used only from their own directory, so the rule goes.
commit b482b18d8bc0a7273cad727ff0440b645039efe1
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Mon Nov 9 18:18:23 2026 +1100
motion: slow a world jog to rest where a joint reaches its soft limit
A world jog is planned per axis against the [AXIS_L] limits. Under the tool centre point a jog of a rotary moves the slides through the inverse, and nothing looked at their travel until a joint had crossed it: motion then reported the soft limit, stopped the jog hard and left the machine on the limit, to be jogged off in joint mode (reported by Sigma1912).
teleop_joint_cap() already reads, every servo cycle, how fast each joint moves per unit of the jog and caps the planners at the joints' velocity and acceleration limits. It now also caps them at what lets a joint heading for a soft limit stop at it, at half the acceleration the planners are left, and go no further than it in one cycle. The room is read from where the planners have taken the joint, the latest inverse, not from the interpolated command, which follows a few cycles behind and let the carriage run on past the limit. The jog stops a ten-millionth of the joint's range short, for the curve of the path over the last step, and a jog that has come to rest there ends, as a jog of a slide ends at its axis limit, with no error; a jog the other way moves off it. Siemens behaves the same way in JOG: the axis stops at its software limit switch (alarm 10621, axis rests on software limit switch) and is jogged off without a mode change, and under a transformation the axis that stops can be another than the one jogged.
tests/kins-limits/jog-travel is the jog test's machine with joint 1 given 300 mm each way, so a jog of C with the tip held swings the carriage out of its travel 48.6 degrees round: a continuous jog held well past that, an incremental jog away, one of 60 degrees back towards the limit and one away again. Before this the carriage ran 14.5 mm past its limit, the soft limit error stopped the jog, the hard stop asked joint 0 for 93000 mm/s^2 and the machine went off; with it each jog into the limit rests within 1 micron inside it, says nothing, and keeps every joint within its velocity and acceleration limits, and the jogs away land where they were sent.