Skip to content

docs: move detail out of the README into docs/ - #14

Merged
aajll merged 1 commit into
masterfrom
13-docs-landing-readme
Oct 15, 2026
Merged

aajll merged 1 commit into
masterfrom
13-docs-landing-readme

Conversation

@aajll

@aajll aajll commented Oct 15, 2026

Copy link
Copy Markdown
Owner

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.md and docs/design.md, and CONTRIBUTING.md and AGENTS.md follow the shared structure. A fixedpoint-control docs examples test compiles every C block in the README, CONTRIBUTING.md and docs/. It is registered only when fxp is a subproject, because the examples need its headers. The Valgrind job runs --no-suite docs.

Routing

Old README section New home
Features README description
Installation (subproject, installed) docs/integration.md
Requirements docs/integration.md#requirements
Number format docs/integration.md#number-format
Quick start: PID README quick start, docs/api.md#pid-controller
Quick start: FIR, biquad docs/api.md#fir-filter, docs/api.md#biquad-filter
Lifecycle docs/api.md (each component), docs/design.md#failure-behaviour
Building docs/integration.md#build-and-test, CONTRIBUTING.md
Platform support README validated toolchains (generic wording), docs/integration.md#cross-builds, docs/design.md#verification
Notes: thread safety docs/api.md#conventions, docs/design.md#storage-and-concurrency
Notes: biquad FXP_MIN, FIR saturation docs/api.md, docs/design.md
Notes: version header docs/integration.md#installed-package

New 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 build under ASan/UBSan: 2/2 (26 unit subtests and the docs test, with 13 blocks checked and 9 skipped).
  • Falsified the docs test: a broken fpc_fir_process call in docs/api.md fails at docs/api.md:232, and it passes again once restored.
  • Snippets also pass with clang.
  • The quick start was built with gcc and clang and prints the stated output. Linking it through pkg-config --cflags --libs fixedpoint-control against a staged install, and through a consumer project with the subproject fallback (fxp resolved through the nested wrap), gives the same output.
  • Every value an api.md example states was checked against a build: FIR outputs 1 to 4, biquad settling at 1.000443, FXP_C(1, 1000) = 66 LSB, and the bumpless output of 350.
  • Struct sizes were measured on x86-64, and with cl2000 22.6.2 and 25.11.1 under both coffabi and eabi using the CI flags.
  • Relative links and anchors resolve, scripts/format.sh is clean, misch run --baseline passes (55 findings), and misch deviations is clean.
  • Exact TI names appear only in the design.md verification section, the CONTRIBUTING CI check list and AGENTS.md §3.

Behaviour found while documenting

These are documented as implemented, not fixed here:

  • Returning to auto mode is off by one integral step. The first auto output for an unchanged error is u + ki·dt·e, not the held u that the fpc_pid_set_mode header comment promises. The bumpless test uses ki = 0.
  • d_filter_alpha = 0 is accepted and freezes the derivative term. After set_config it leaves a constant output offset.

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
@aajll
aajll merged commit 47f0584 into master Oct 15, 2026
10 checks passed
@aajll
aajll deleted the 13-docs-landing-readme branch October 15, 2026 08:50
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.

1 participant