Skip to content

docs: regenerate CLI parameters reference - #1402

Closed
nerdCopter wants to merge 5 commits into
emuflight:masterfrom
nerdCopter:docs/gen-cli-docs-1400
Closed

docs: regenerate CLI parameters reference#1402
nerdCopter wants to merge 5 commits into
emuflight:masterfrom
nerdCopter:docs/gen-cli-docs-1400

Conversation

@nerdCopter

@nerdCopter nerdCopter commented Aug 18, 2026

Copy link
Copy Markdown
Member

AI Generated pull-request

Ran docs/gen_cli_docs.py against current settings.c/settings.h at HEAD b50c475a7.

Picks up parameters added since the last regen (47a13a7155, 2026-06-13):

#1400 (dmaopt claim-status warning) touches only cli.c runtime diagnostics, not settings.c/settings.h — verified its isolated diff adds zero rows to the generated parameter table. No dmaopt-related content is expected or present in this regen.

Test plan

Summary by CodeRabbit

  • Documentation
    • Updated the CLI reference with the latest generation metadata.
    • Added documentation for Position Config, including the altitude_limit parameter.
    • Documented Blackbox options for disabling selected data categories.

Ran docs/gen_cli_docs.py against current settings.c/h. Picks up blackbox_disable_* bitflags (emuflight#1332) and altitude_limit/Position Config (emuflight#1260), neither previously captured in the last regen. emuflight#1400 (dmaopt claim-status warning) touched only cli.c runtime diagnostics, not settings.c/h, so it adds no rows here.
@coderabbitai

coderabbitai Bot commented Aug 18, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 29c1e718-8033-4a93-b2ad-0700f5168ea6

📥 Commits

Reviewing files that changed from the base of the PR and between 862f24f and 3c59601.

📒 Files selected for processing (1)
  • docs/CLI/parameters-reference.md

Included review availability: Your plan provides up to 4 included reviews per hour; 1 remains after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (16)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: sitl
  • GitHub Check: test
  • GitHub Check: build (targets-group-4)
  • GitHub Check: build (targets-group-7)
  • GitHub Check: build (targets-group-1)
  • GitHub Check: build (targets-group-5)
  • GitHub Check: build (targets-group-rest)
  • GitHub Check: build (targets-group-11)
  • GitHub Check: build (targets-group-9)
  • GitHub Check: build (targets-group-2)
  • GitHub Check: build (targets-group-8)
  • GitHub Check: build (targets-group-3)
  • GitHub Check: build (targets-group-10)
  • GitHub Check: test
  • GitHub Check: build (targets-group-6)
🔇 Additional comments (1)
docs/CLI/parameters-reference.md (1)

4-4: LGTM!

Also applies to: 39-39, 224-236, 464-469


📝 Walkthrough

Walkthrough

The CLI parameter reference updates its generated metadata, adds Blackbox recording bitflags, and documents the master-scoped altitude_limit parameter under Position Config.

Changes

CLI Reference Updates

Layer / File(s) Summary
Document CLI parameter metadata and sections
docs/CLI/parameters-reference.md
Updates the generated-document date and commit, adds Position Config to the table of contents, documents Blackbox recording bitflags, and defines altitude_limit as a uint16 parameter with a range of 010000.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Merge Risk: ⚪ Minimal · up to 3c596

This is a localized documentation-only regeneration with no production behavior changes; no actionable merge-blocking risk remains beyond normal checks and review.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: regenerating the CLI parameters reference.
Description check ✅ Passed The description explains the regeneration source, lists the captured parameters, clarifies the scope of PR #1400, and includes a completed test plan. It does not repeat every repository contribution i…
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description explains the regeneration source, lists the captured parameters, clarifies the scope of PR #1400, and includes a completed test plan. It does not repeat every repository contribution instruction, but the missing items are non-critical for this documentation-only change.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nerdCopter
nerdCopter marked this pull request as ready for review August 25, 2026 16:02
nerdCopter added a commit to nerdCopter/EmuFlight_nerdRepo that referenced this pull request Aug 25, 2026
Folds the PG-backed commands table into parameters-reference.md as a new
CLI Commands (PG-Backed) section instead of a separate file, matching emuflight#1403's
own wording ("emit a second doc section"). Retitles the doc header to
CLI Reference since it now covers both valueTable[] settings and cmdTable[]
commands; filename unchanged.

Requires a full regen of parameters-reference.md's existing content (last
regenerated 2026-06-13), which also picks up unrelated settings.c drift
since then (Position Config's altitude_limit, blackbox_disable_* bitflags)
and populates the Requires column throughout via the prior commit's regex
fix. This is the same regen the separate, still-open emuflight#1402 was doing --
emuflight#1402 becomes redundant once this merges.

Closes emuflight#1403
nerdCopter added a commit that referenced this pull request Aug 25, 2026
Adds a cmdTable[] parser to docs/gen_cli_docs.py and a CLI Commands (PG-Backed)
section inside docs/CLI/parameters-reference.md, covering 12 commands whose
config persists through their own dedicated table/handler instead of
valueTable[]: adjrange, aux, color, dma, led, mmix, mode_color, rxfail,
rxrange, serial, smix, vtx.

Fixes _extract_use_conditions()/_format_requires(): double-escaped
backslashes in raw-string regexes meant the Requires column was empty for
every entry regardless of #ifdef guards.

Full regen of parameters-reference.md (last regenerated 2026-06-13) also
picks up unrelated settings.c drift (Position Config's altitude_limit,
blackbox_disable_* bitflags) -- supersedes #1402.

Closes #1403
@nerdCopter

Copy link
Copy Markdown
Member Author

AI Generated comment

Superseded by #1413 (merged e523f29), which already includes this PR's parameters-reference.md regen content plus a new CLI Commands (PG-Backed) section and a Requires-column bug fix. Closing without merge.

@nerdCopter nerdCopter closed this Aug 25, 2026
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