Skip to content

SN-8894 SN-8930 Regenerate CBOR registry sources: domain DIDs (CONFIG_SYSTEM) and RMC served_by - #1358

Closed
kylemallory wants to merge 7 commits into
developfrom
SN-8894_cbor-docs
Closed

kylemallory wants to merge 7 commits into
developfrom
SN-8894_cbor-docs

Conversation

@kylemallory

@kylemallory kylemallory commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Generated sources from the CBOR key registry in is-common, for SN-8894 and SN-8930. No hand-written code changes.

  • RMC_STORED and RMC served_by (SN-8894): RMC_STORED is served by IMX-5 and IMX-6 only (the GPX keeps it in storage but does not serve it), and the runtime RMC by no device until phase 2. Only doc comments change.
  • CONFIG_SYSTEM (0x0102), the first domain DID (SN-8930). A domain DID has no struct of its own; no existing DID struct changes. Its generated pair holds:
    • a view struct with one member per key (cbor_config_system_t);
    • the schema of every key over it (g_cborSchema_CONFIG_SYSTEM), which hosts use; the schema lookup now includes domain DIDs;
    • the registry's defaults as a view (g_cborDefaults_CONFIG_SYSTEM, g_cborDefaultFixed_CONFIG_SYSTEM).
  • Key macros of nested fields are qualified by their map (CBOR_CONFIG_SYSTEM__PLATFORM_TYPE). No other DID's generated sources change.

More domain DIDs will be added to this branch as SN-8930 continues.

Merge before the is-common PR on SN-8894_cbor-docs (https://github.com/inertialsense/imx/pull/1795), which carries the registry and points at this branch; generate --check needs both.

🤖 Generated with Claude Code

The registry now lists the devices that serve each DID over the wire: RMC_STORED is served by IMX-5 and IMX-6 (the GPX stores it but does not serve it), and RMC by none until phase 2. Only the generated comments change.

@Hephaestus-Maximus Hephaestus-Maximus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review of the regenerated CBOR registry comments at 58eac03 (Hephaestus, automated). Verdict: APPROVE.

Verified:

  • The diff is comment-only: the served_by text in cbor_registry.h, cbor_did_rmc.h and cbor_did_rmc_stored.h. No keys, values or code change.
  • It is exactly what the generator produces from the companion registry change. I checked out inertialsense/imx#1795 (3c2a910) with this PR's SDK submodule (58eac03) and ran scripts/cbor_registry.py generate --check and check. Both pass. Their only output is the existing RMC_STORED whole-DID size warning (99189 B vs. one 1212 B reply, "hosts must request it in parts"), which this change doesn't touch. scripts/test_cbor_registry.py passes (33 passed, 87 subtests).
  • Negative control: with the SDK submodule at this PR's parent commit (58eac03~1) and the same registry, generate --check fails with "generated files are out of date" and names exactly these three files. So this PR is needed, and nothing else is stale.
  • The wording matches the registry YAML (rmc_stored.yaml: [IMX-5, IMX-6], rmc.yaml: []).
  • On the IMX side, firmware code references CBOR_DID_RMC_STORED (e.g. flash_cfg_cbor_imx.c:126) and nothing references the runtime CBOR_DID_RMC, which fits "served by no device until phase 2".

Not verified: the claim that the GPX stores RMC_STORED but does not serve it. The is-gpx sources weren't available to me, and I took it from the registry comment. Nothing built from the generated headers changes, so I didn't build firmware.

Merge order: as the description says, this must land together with imx#1795. generate --check needs both, and it fails for either one alone.

Description: graded 5/5 (short, accurate, states the merge dependency), left as is.

@waltjohnson
waltjohnson requested a balanced review from Copilot November 4, 2026 06:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the RMC device-support documentation corrections.

No open issues 🎉

What changed in this PR

Updates generated CBOR documentation to reflect corrected device support in the is-common registry. No executable code or key values change.

Changes:

  • Removes GPX-1 from the devices documented as serving RMC_STORED.
  • Removes device-serving claims for runtime RMC, which remains unserved until phase 2.
  • Requires coordinated merge with the is-common registry update for generate --check consistency.
File Description
src/​cbor/​dids/​cbor_did_rmc.h Removes the device-serving list from the RMC header comment.
src/​cbor/​dids/​cbor_did_rmc_stored.h Documents RMC_STORED as served only by IMX-5 and IMX-6.
src/​cbor/​cbor_registry.h Aligns both DID comments with the corrected device support.

Review effort: Balanced

…main DID

CONFIG_SYSTEM (0x0102) is the first domain DID: it has no struct of its own. Its generated pair holds a view struct with one member per key (cbor_config_system_t), the schema of every key over it (g_cborSchema_CONFIG_SYSTEM), and the registry's defaults as a view (g_cborDefaults_CONFIG_SYSTEM, g_cborDefaultFixed_CONFIG_SYSTEM). The schema lookup now includes domain DIDs.

Key macros of nested fields are qualified by their map (CBOR_CONFIG_SYSTEM__PLATFORM_TYPE). No existing DID's generated sources change.
@kylemallory kylemallory changed the title SN-8894 Regenerate CBOR registry sources: RMC_STORED and RMC served_by SN-8894 SN-8930 Regenerate CBOR registry sources: domain DIDs (CONFIG_SYSTEM) and RMC served_by Nov 25, 2026
kylemallory and others added 2 commits November 24, 2026 18:41
…CONFIG_GROUND_VEHICLE

Three more domain DIDs, each with its view struct, full schema and recorded defaults:

- CONFIG_INS (0x0103): frames, dynamics, fusion, zero-velocity updates, shock and fault rejection, and the complementary-filter gains.
- CONFIG_MAG (0x0104): magnetometer recalibration, quality thresholds and declination.
- CONFIG_GROUND_VEHICLE (0x0105): wheel geometry, the IMU-to-wheel transform and the encoder.

All three are served by IMX-5 and IMX-6. No existing DID's generated sources change.
@kylemallory

Copy link
Copy Markdown
Contributor Author

Superseded by #1398. This PR closed when its branch was renamed from SN-8894_cbor-docs to SN-8930_cbor_domain_registry; the commits are unchanged.

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.

7 participants