Repository navigation
SN-8894 SN-8930 Regenerate CBOR registry sources: domain DIDs (CONFIG_SYSTEM) and RMC served_by - #1358
SN-8894 SN-8930 Regenerate CBOR registry sources: domain DIDs (CONFIG_SYSTEM) and RMC served_by#1358kylemallory wants to merge 7 commits into
Conversation
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
left a comment
There was a problem hiding this comment.
Review of the regenerated CBOR registry comments at 58eac03 (Hephaestus, automated). Verdict: APPROVE.
Verified:
- The diff is comment-only: the
served_bytext incbor_registry.h,cbor_did_rmc.handcbor_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 --checkandcheck. Both pass. Their only output is the existingRMC_STOREDwhole-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.pypasses (33 passed, 87 subtests). - Negative control: with the SDK submodule at this PR's parent commit (58eac03~1) and the same registry,
generate --checkfails 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 runtimeCBOR_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.
There was a problem hiding this comment.
🟢 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 --checkconsistency.
| 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.
…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.
|
Superseded by #1398. This PR closed when its branch was renamed from |
Generated sources from the CBOR key registry in is-common, for SN-8894 and SN-8930. No hand-written code changes.
RMC_STOREDandRMCserved_by (SN-8894):RMC_STOREDis served by IMX-5 and IMX-6 only (the GPX keeps it in storage but does not serve it), and the runtimeRMCby 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:cbor_config_system_t);g_cborSchema_CONFIG_SYSTEM), which hosts use; the schema lookup now includes domain DIDs;g_cborDefaults_CONFIG_SYSTEM,g_cborDefaultFixed_CONFIG_SYSTEM).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 --checkneeds both.🤖 Generated with Claude Code