Repository navigation
docs: move detail out of the README into docs/ - #14
Merged
Merged
Conversation
The README becomes a short landing page with a quick start whose output is checked, and the detail moves to docs/integration.md, docs/api.md and docs/design.md, with CONTRIBUTING.md and AGENTS.md rewritten to match. A docs test compiles every C block in the README, CONTRIBUTING.md and docs/, and the Valgrind job skips it because it runs the Python checker. Refs #13
4 tasks
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.
Refs #13
Summary
The README is now an 85-line landing page with a quick start whose stated output is verified. The detail moves to
docs/integration.md,docs/api.mdanddocs/design.md, andCONTRIBUTING.mdandAGENTS.mdfollow the shared structure. Afixedpoint-control docs examplestest compiles every C block in the README,CONTRIBUTING.mdanddocs/. It is registered only when fxp is a subproject, because the examples need its headers. The Valgrind job runs--no-suite docs.Routing
docs/integration.mddocs/integration.md#requirementsdocs/integration.md#number-formatdocs/api.md#pid-controllerdocs/api.md#fir-filter,docs/api.md#biquad-filterdocs/api.md(each component),docs/design.md#failure-behaviourdocs/integration.md#build-and-test,CONTRIBUTING.mddocs/integration.md#cross-builds,docs/design.md#verificationdocs/api.md#conventions,docs/design.md#storage-and-concurrencyFXP_MIN, FIR saturationdocs/api.md,docs/design.mddocs/integration.md#installed-packageNew content covers the discrete control law and the overflow-bound argument, the modes, the filter forms, worst-case cost, the footprint (x86-64 and the 16-bit-MAU target, the same for both compiler releases and both object formats), the MISRA baseline by rule, and verification.
Checks run
meson test -C buildunder ASan/UBSan: 2/2 (26 unit subtests and the docs test, with 13 blocks checked and 9 skipped).fpc_fir_processcall indocs/api.mdfails atdocs/api.md:232, and it passes again once restored.pkg-config --cflags --libs fixedpoint-controlagainst a staged install, and through a consumer project with the subproject fallback (fxp resolved through the nested wrap), gives the same output.FXP_C(1, 1000)= 66 LSB, and the bumpless output of 350.scripts/format.shis clean,misch run --baselinepasses (55 findings), andmisch deviationsis clean.Behaviour found while documenting
These are documented as implemented, not fixed here:
u + ki·dt·e, not the helduthat thefpc_pid_set_modeheader comment promises. The bumpless test useski = 0.d_filter_alpha = 0is accepted and freezes the derivative term. Afterset_configit leaves a constant output offset.