Repository navigation
docs: explain PID from scratch, and how to tune it by watching - #111
Merged
Merged
Conversation
`BB.PID.Kernel` documents the control law and the two places it departs from the textbook form, but nothing here says what P, I and D actually do, or how to tell from a misbehaving machine which one to reach for. Adds an Explanation page covering the three terms, which subsets are worth using and why, a symptom-to-gain table, and the argument for binary-searching a gain rather than nudging it. Also covers the case where the stubborn error is in the setpoint rather than the output, so the integrator belongs on the output and corrects the target instead. Reworked from the Goatmire 2026 balance bot workshop, with the robot-specific numbers left behind.
jimsynz
force-pushed
the
docs/understanding-pid
branch
from
September 30, 2026 04:17
40fecaa to
cf995cd
Compare
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.
BB.PID.Kerneldocuments the control law well, including the two places it departs from the textbook form. What's missing is the layer underneath: what P, I and D actually do, and how to tell from a misbehaving machine which one to reach for.Adds an Explanation page covering:
Reworked from the Goatmire 2026 balance bot workshop, with the robot-specific numbers left behind. Stops at the conceptual level and points at
BB.PID.Kernelfor the implementation.Also adds the Explanation group to
groups_for_extras, which the package didn't have.Depends on beam-bots/bb#280 for the
robotics-vocabularylink to resolve — it's an absolute hexdocs URL, so it'll 404 untilbbnext publishes.