Skip to content

hal: Update the pid component to 64-bit clean operation - #4773

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_update-pid
Nov 4, 2026
Merged

grandixximo merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:hal64_update-pid

Conversation

@BsAtHome

@BsAtHome BsAtHome commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

This is mostly a straight forward update to run 64-bit clean.

The only exceptions are that the saturation counting has been changed. Accumulation was changed to take account for rounding when adding small values to large values in floating point calculation. And, there is no longer a real danger of overflowing a counter when a 1 millisecond thread would take 292 million years to overflow it. Even the nanoseconds counter will not overflow for at least 292 years and I seriously doubt that any engineer would survive looking at that counter from start until it wraps.

@grandixximo
grandixximo merged commit 0fc9f35 into LinuxCNC:master Nov 4, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants