ini: warn when PLANNER_TYPE=1 falls back to trapezoidal due to low jerk - #4390
Merged
Merged
Conversation
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.
Contributor
Author
|
This is one of those points that are better addressed in code rather than in the docs, discussed at the meeting |
BsAtHome
approved these changes
Aug 16, 2026
Contributor
This wasn't in the docs, wasn't it? Or would the docs also need an update in the PR? |
Contributor
Author
Contributor
|
Check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PLANNER_TYPE = 1withMAX_LINEAR_JERK < 1.0silently 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.
Note: #4349 documents the old silent behavior in
ini-config.adoc; that sentence becomes stale if this merges first.