Skip to content

ini: warn when PLANNER_TYPE=1 falls back to trapezoidal due to low jerk - #4390

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
grandixximo:jerk-fallback-warn
Aug 16, 2026
Merged

ini: warn when PLANNER_TYPE=1 falls back to trapezoidal due to low jerk#4390
grandixximo merged 1 commit into
LinuxCNC:masterfrom
grandixximo:jerk-fallback-warn

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

PLANNER_TYPE = 1 with MAX_LINEAR_JERK < 1.0 silently forced the trapezoidal planner, both at startup (loadTraj(), which carried a FIXME asking for this warning) and at runtime via the inihal HAL pins. Users who requested S-curve planning got no indication their setting was ignored.

This prints a warning in both paths: at startup, and once per session for HAL-pin-triggered fallbacks.

[TRAJ]PLANNER_TYPE = 1 (S-curve) requires [TRAJ]MAX_LINEAR_JERK >= 1.0 (got 0.5); using trapezoidal planner

Note: #4349 documents the old silent behavior in ini-config.adoc; that sentence becomes stale if this merges first.

Setting [TRAJ]PLANNER_TYPE = 1 with [TRAJ]MAX_LINEAR_JERK < 1.0 silently
forced the trapezoidal planner, leaving users who requested S-curve
planning with no indication their setting was ignored (the code even
carried a FIXME asking for this warning). The same silent fallback
existed for runtime changes via the inihal HAL pins.

Print a one-time warning in both paths: at startup from loadTraj(),
and once from check_ini_hal_items() when a HAL pin change triggers
the fallback.
@grandixximo
grandixximo requested a review from BsAtHome August 16, 2026 11:52
@grandixximo

Copy link
Copy Markdown
Contributor Author

This is one of those points that are better addressed in code rather than in the docs, discussed at the meeting

@BsAtHome

Copy link
Copy Markdown
Contributor

This is one of those points that are better addressed in code rather than in the docs, discussed at the meeting

This wasn't in the docs, wasn't it? Or would the docs also need an update in the PR?

@grandixximo

Copy link
Copy Markdown
Contributor Author

This is not in the doc yet, #4349 is proposing to put in the docs, instead I'm fixing the source, merge this, and then I will direct #4349 for changes

@BsAtHome

Copy link
Copy Markdown
Contributor

Check

@grandixximo
grandixximo merged commit d19b5bd into LinuxCNC:master Aug 16, 2026
16 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