Repository navigation
Model the wiring harnesses as buses - #24
Merged
Merged
Conversation
Each module carried one port per harness signal, so the robot connected the main board, harnesses, base and top modules with 46 separate connections, and the module interconnection figure was a tangle of signal lines. The harness signals are now nested ports of a bus port: BaseHarnessBus and TopHarnessBus as the main board sees them, and a module-side mate of each (BaseHarnessModuleBus, TopHarnessModuleBus) for the base and top modules and the harness ends facing the board. Conjugation reverses only directed features, not nested ports (SysML v2 7.12), so the mates are definitions of their own. The robot level connects each harness end once (six connections), inside each module the parts connect to the bus's nested ports, and inside each harness the signals pass from one end to the other. Sensor power from the base to the top stays a port of its own. Validation reports 0 errors and the four documented custom-view warnings; the BOM (49 items) and the mass budget (3.69 kg) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 7, 2026
Open
The lean-model guard looked for the HMI connection to the top system's own port. With the harness as a bus, the HMI connects to the bus port's hmiControl signal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The module interconnection figure in the SDS was unreadable. Every harness signal was its own port and connection: 46 connections between the main board, the two harnesses and the base and top modules. This models each harness as a bus, the SysML equivalent of a Simulink bus.
What changed
BaseHarnessBus(18 signals) andTopHarnessBus(4 signals) are port definitions whose signals are nested ports, typed as the main board sees them.BaseHarnessModuleBusandTopHarnessModuleBus, typed as the base and top modules see them.~BaseHarnessBuscouldn't serve as the mate. Spec42 flagged that withflow_direction_incompatible.baseHarnessandtopHarness.mainPcbHarness.baseHarness.batteryRailtoleftMotorDriver.supply.mainPcbEndand a module end, and passes every signal from one end to the other. Sensor power from the base to the top stays a port of its own.MODEL_GUIDE.mddescribe the buses.Checked
validate_model.pyreports 0 errors and the four documented custom-view warnings, and the methodology checks pass. The unit tests pass.generate-document-data.py: the BOM (49 items) and the mass budget (3.69 kg) are unchanged.🤖 Generated with Claude Code