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 f6d2c4efbe7be7a5d8fd3aef4f9cd42fc2ee022f
Merge: a913ece2 21d676b0
Author: BsAtHome <bertho@vagrearg.org>
Date: Fri Dec 4 14:54:20 2026 +0100
Merge pull request #4960 from smoe/codex/darwin-interpreter-constants-upstream
rs274: provide Darwin long-double math constants
commit a913ece20e5fda53499f671646d8b3ec6dc3e96c
Merge: a3d18cc9 57e242b2
Author: BsAtHome <bertho@vagrearg.org>
Date: Fri Dec 4 13:46:08 2026 +0100
Merge pull request #4958 from smoe/codex/darwin-byteorder-upstream
rtapi: detect Darwin byte order with compiler macros
commit 57e242b22071615ea94fdf862a51448da297bf94
Author: Steffen Moeller <moeller@debian.org>
Date: Fri Dec 4 12:16:56 2026 +0100
include/rtapi_byteorder.h: macOS: simplification
commit 21d676b08fb428eb01f7cd6a240b508b43ef5461
Author: Steffen Moeller <moeller@debian.org>
Date: Fri Dec 4 12:02:42 2026 +0100
rs274: select Darwin math flags using the configured host
Substitute Autoconf's host_os into Makefile.inc so the interpreter can
select the Darwin SDK opt-in using the host chosen by configure.
commit 98fad546e68f8d8664f0fe0d8f5727bc62587169
Author: Steffen Moeller <moeller@debian.org>
Date: Wed Oct 21 18:15:48 2026 +0200
rs274: use the Darwin SDK long-double math constants
The interpreter uses M_PIl and M_PI_2l, which the macOS SDK leaves
undefined by default. Pass -D__MATH_LONG_DOUBLE_CONSTANTS to interpreter
compilation on Darwin so the SDK supplies both values on the first
inclusion of math.h, including through another header.
commit 93c2aa32a3214ad1e9ef983eb7516c2caced66ac
Author: Steffen Moeller <moeller@debian.org>
Date: Thu Dec 3 23:27:01 2026 +0100
rtapi: detect Darwin byte order with compiler macros
Select compiler target byte-order macros on Darwin instead of depending
on an SDK-specific endian.h location. Fail explicitly when those macros
are unavailable or report an unsupported byte order.
Restrict the floating-point word-order mapping to Darwin arm64 and
x86_64, whose ABIs use the integer word order for doubles. Reject other
Apple architectures until their floating-point word order is verified.
Keep the existing kernel, Linux and FreeBSD branches unchanged.
commit a3d18cc9c87eb556157018e32c5d21d1d09534c6
Merge: 762b38b3 a25078a4
Author: BsAtHome <bertho@vagrearg.org>
Date: Thu Dec 3 23:18:17 2026 +0100
Merge pull request #4818 from grandixximo/mdi-queuebuster-single
tests: mdi-while-queuebuster-waitflag starts once and checks the MDI order
commit 762b38b3145d0cfdff17a8a2e60f9cb9e925f081
Merge: 1f5771b6 d41a07d4
Author: BsAtHome <bertho@vagrearg.org>
Date: Thu Dec 3 23:13:54 2026 +0100
Merge pull request #4797 from smoe/codex/darwin-boost-python-search
configure: retain Darwin Boost.Python search flags
commit 1f5771b693a423d7a2c101ea7d574c723540df42
Merge: 718336db c12257ee
Author: BsAtHome <bertho@vagrearg.org>
Date: Thu Dec 3 23:03:42 2026 +0100
Merge pull request #4956 from grandixximo/home-shared-limits
motion: a shared home/limit input does not trip a joint that stands still
commit 718336dbe66e1317009a2e5bf5ebdfb897f0378b
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Thu Dec 3 09:02:22 2026 -0500
linuxcncrsh: wait for task to receive SET ESTOP and SET MACHINE (#4957)
* linuxcncrsh: wait for task to receive SET ESTOP and SET MACHINE
tests/t0/nonrandom failed once on an arm CI runner with every MDI line
refused: "Machine must be 'ON' for SET MDI".
SET ESTOP and SET MACHINE send the state command and then watch the
motion heartbeat in task's status for the new state, giving up after one
second without a heartbeat. On a state change the interpreter writes the
parameter file and calls fdatasync(). On a slow disk that call can take
seconds, and task publishes no status meanwhile, so the heartbeat stands
still. linuxcncrsh then reported a failure for a command that task was
still working on, went on to the next one, and the machine never came on.
Wait for task to echo the command before watching the heartbeat.
Tested by delaying that fdatasync() by 3.45 s with a preload shim:
t0/nonrandom fails the same way as on CI without the change and passes
with it.
* linuxcncrsh: bound the wait for task to receive a command
emcTimeout is 0 in linuxcncrsh, so the wait added for SET ESTOP and
SET MACHINE blocked every client for as long as task did not answer.
Move it to a helper that waits at most 10 s, and use it in
SET JOINT_HOME too, which watches the heartbeat the same way.
commit c12257eead7a7d2088a366207719d2d5232240f6
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Thu Dec 3 19:53:38 2026 +1100
motion: a shared home/limit input does not trip a joint that stands still
A machine with one switch input wired to the home and limit pins of several joints could not home: when X pressed the switch, Z's limit pin went high and tripped, although both joints set HOME_IGNORE_LIMITS and HOME_IS_SHARED. HOME_IGNORE_LIMITS only covered the joint that was homing, so the docs told users to mask the other joints' limits in HAL (forum thread 59433).
A joint with both flags now ignores its limit input while any joint homes, in free mode, as long as its own free planner is idle. While homing runs nothing else moves such a joint (jogs are refused), so only the shared switch can be pressed; a jog still running when the home started keeps its limit. Absolute encoder joints are left out, as homing drops HOME_IS_SHARED for them. Motion keeps the combined flag per joint from the homing parameters, so the homing module API is unchanged.
tests/home-shared-limits wires one input to the home and limit pins of joints 0 and 2: a Home All (joint 2, then joint 0) homes without a trip, and moving the switch under joint 0 afterwards trips the limit. It is a new test because no existing homing test shares a switch input with limit pins.
commit 412091e3c2301515101227ea001925eeca0578f1
Merge: 0b77a161 78dd2b61
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 08:13:06 2026 -0500
Merge pull request #4951 from grandixximo/ks-kins-wait
task: hold an MDI back while a kinematics switch is still landing
commit 0b77a161b18566d2e72a8ebf4eb96f662a440fc3
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 08:12:56 2026 -0500
twinspindlekins: a mill-turn whose two spindles are two primary types (#4942)
* twinspindlekins: a mill-turn whose two spindles are two primary types
A head on X Y Z tilts the tool on B between a main spindle turning its
part on C and a sub spindle facing it along Z and turning its own part on
W, an ANGULAR axis. Type 0 works in the frame of the main spindle's part
and orients the tool with C and B, type 1 in the frame of the sub
spindle's part, the main one turned half a turn about X so its Z too
points at the tool, and orients it with W and B; both are primary, so
G12.1 picks the spindle and a program reads the same on either part.
Type 2 is the identity and the machine frame.
Written as pure functions of the parameter block, with work and tool
frames and the orienting letters declared, so the interpreter solves the
tilted work plane on either spindle. The joints read the gauge line with
B at 0 and the tool length goes along the tool, as on 5axiskins.
tests/kins-params checks both working types against realtime.
* sim: twinspindle, one subroutine drilling the parts in both spindles
A vismach sim of twinspindlekins, the spindle line across the screen,
with a demo program that drills a ring of tilted holes into the part in
the main spindle and then into the part in the sub spindle through one
subroutine. It names no rotary: G53.3 turns the ones the type in force
orients with, and the report reads them as #<_kins_orient_1> and
#<_kins_orient_2>, C and B on one spindle, W and B on the other, with
their angles as #<_orient_rot1> and #<_orient_rot2>.
tests/twinspindle checks the orienting axes of each type, that the same
tilted hole solves and is reached on either spindle, the tip on the hole
and the tool along its axis, and that the demo program runs.
* sim: twinspindle moves G53, G28 and G30 in the machine frame
Like the five axis sims: the INI sets MACHINE_MOVES_IN_MACHINE_FRAME with a comment, and the README says so, so G53 puts the slides in the same place on either spindle's type whatever the tool and the head angle. The demo program and tests/twinspindle (its own test.ini) use no G53, G28 or G30 off the machine frame type.
commit 8f13d44b7737555e034b78286e143f1c66dbe30e
Merge: c8d5d127 081149e9
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 08:12:16 2026 -0500
Merge pull request #4948 from grandixximo/docs-hal-gpio-setp
docs: hal_gpio: reword reset_ns parameter description
commit c8d5d127c37272e1a3738292e008bf85be1ad4c6
Merge: 0abf4192 0524d107
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 07:30:10 2026 -0500
Merge pull request #4950 from grandixximo/single-step-end
tests/single-step: do not step after the last move
commit 081149e921b1f2248bd9a8e0bda2969f29886292
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 19:58:28 2026 +1100
docs: hal_gpio: reword reset_ns parameter description
"setp this parameter" used the halcmd command as a verb, which confused a translator on Weblate (Américo Monteiro). Say what the parameter is and that it is set with setp.
commit 78dd2b61cdb575135fa67e14f490deedf0cc3d97
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 22:37:12 2026 +1100
task: hold an MDI back while a kinematics switch is still landing
An abort routine that selects a kinematics, G13.1 in ON_ABORT_COMMAND,
runs inside the interpreter at once, but its switch reaches motion later,
and until it has landed the interpreter is back on the type motion still
runs. An MDI arriving in that wait was read straight away under the old
type: G43.4 H1 sent right after an abort found the interpreter already on
the primary kinematics, queued no switch, and left G43.4 active with
motion in identity.
A G12.1 or G13.1 in a program or MDI line sets the wait flag, which holds
an MDI back. The abort routine cannot, so task now also queues an MDI that
arrives while it waits for a kinematics switch.
tests/kins-switch sends G43.4 H1 right after an abort, ten times. Under
load, runtests -j 4 with 8 CPU hogs in a sandbox, it failed 28 of 40 runs
without the change and passed 40 of 40 with it. The full runtests suite
passes.
commit 0abf4192f392eb2fc25b32c5ef25ac8336f7dcf2
Merge: 93d631eb 887f9843
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 07:14:17 2026 -0500
Merge pull request #4949 from grandixximo/g282-mdi-wait
task: report a queued MDI as not idle
commit 0524d107618123834bf8462fa3fb196dbd054243
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 23:05:29 2026 +1100
tests/single-step: do not step after the last move
The test sends a step whenever X and Y are on a multiple of 5, checking
stat for idle first. At the end of the last move the program is over,
but task needs a few cycles to report idle. A step sent in that gap can
arrive after task went idle, and a step on an idle program starts it
again from the top, so the run ended with "End counter incorrect".
The test now sends no step from the end position of the last move and
just waits for idle.
Tested with a slowed task cycle and a delay between the test's poll and
its step: 23 of 40 runs failed before, 0 of 40 after.
commit 93d631eb8e0c6db8b724359f9938cd4183cccee6
Merge: 2597a15c 9196617d
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 06:36:07 2026 -0500
Merge pull request #4816 from grandixximo/motion-abort-stale
task: abort once after a motion error, not again on an old status copy
commit 887f9843152263eca1207a53f150b695b5a939cf
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 20:31:48 2026 +1100
task: report a queued MDI as not idle
When an MDI arrives while task is still busy, for instance with the
cleanup after an abort, task puts it in its MDI queue and runs it later.
The status that echoes the command still showed the interpreter idle,
so a client that sends an MDI and then waits for idle returned at once
and read the machine before the command had run.
tests/interp/g28.2/invalid-pword did exactly that and failed on the i386
CI job of #4942: "coordinated motion did not survive the rejected Pn (X
stayed at 0.9999999999999999)", X still at 1 from the G0 X1 before.
Task now sets the interpreter state to reading when it queues an MDI, as
it does when it runs one straight away. It goes back to idle once the
queued command has run, as before.
The test no longer sleeps after its mode switches: task applies a mode in
the cycle that echoes it, so the next command already sees it.
Tested in a sandbox under load, runtests -j 8 with 8 CPU hogs: the test
as it is on master failed 6 times in 220 runs, and passed 220 of 220 with
this change; the test from this commit passed 240 of 240. The full
runtests suite passes.
commit 2597a15cc930d020187bc1194b9faca445397983
Merge: f18a8d7a 50b4c69b
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 01:07:15 2026 -0500
Merge pull request #4946 from weblate/weblate-linuxcnc-linuxcnc-docs
Translations update from Hosted Weblate
commit f18a8d7ac8953dc822956bc5e509bc810b7c5ddc
Merge: 187b6c47 43f8b29c
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 01:06:56 2026 -0500
Merge pull request #4947 from grandixximo/test-waits
tests: wait for the machine to be on and homed, and for the abort's plane cancel
commit 43f8b29cb5fdfe736f6c72cbb53ccb2a23a7db65
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 16:38:39 2026 +1100
tests: wait for homing in the other tests that home(-1)
The tests below send home(-1), wait_complete() and then switch to MDI or
move, the same race kins-limits/box hit: wait_complete() returns once task
has passed the home on, not once the joints are homed. They use home_all()
now. Tests whose configs have no HOME_SEQUENCE are left as they are: there
home(-1) homes nothing and MDI does not need it.
All touched tests pass three times in a row at runtests -j 8 in the sandbox.
commit 203b2fcc3879b4b8aeeab1c1b720125a635cb07c
Author: Luca Toniolo <10792599+grandixximo@users.noreply.github.com>
Date: Wed Dec 2 16:38:39 2026 +1100
tests: wait for the machine to be on and homed, and for the abort's cancel
Since linuxcnc.command() stopped paying 20 ms per command (#4833), three
tests flake in CI:
- kins-limits/box sends mode(MDI) while the joints are still homing:
wait_complete() after home(-1) only waits for task to pass the home on.
Task refuses MDI and every move after fails.
- matrixkins asks to home before the machine is on, and motion refuses.
- twp-native reads g68_active right after a refused MDI, before the
abort's plane cancel has gone through task's queue.
linuxcnc_util gets wait_for_machine_on() and home_all(), and home_joints()
now waits for the machine to be on first. twp-native waits until the plane
is cancelled, with a deadline, so a cancel that never comes still fails.
Tested in the sandbox under 8 busy-loop CPU burners: on master
kins-limits/box failed 1 of 10 rounds; with this change 20 of 20 rounds of
all three pass.
commit 50b4c69be195a52ab06620d7b08d3502b6a6ef96
Author: Américo Monteiro <a-monteiro@users.noreply.hosted.weblate.org>
Date: Tue Dec 1 23:52:15 2026 +0100
Translated using Weblate (Portuguese)
Currently translated at 45.7% (15538 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 632137fdc51a2081d18dad828311cca3b42fefb9
Author: Salvador Peña <sal@users.noreply.hosted.weblate.org>
Date: Tue Dec 1 23:52:11 2026 +0100
Translated using Weblate (Spanish)
Currently translated at 36.6% (12454 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 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.