Skip to content

Fix #53, generate padding in JSON correctly#54

Merged
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-53-padding
May 4, 2023
Merged

Fix #53, generate padding in JSON correctly#54
dzbaker merged 1 commit intonasa:mainfrom
jphickey:fix-53-padding

Conversation

@jphickey
Copy link
Copy Markdown
Contributor

@jphickey jphickey commented May 2, 2023

Describe the contribution
Handle EDS "PaddingEntry" elements in containers. In this case the member has no type, and should be translated to an array of uint8 values of the appropriate size.

Testing performed
Generate JSON from EDS

Expected behavior changes
Injects "Spare" bytes where required to compensate for padding.

System(s) tested on
Debian

Additional context
The CTF tool appears to actually assign values to spare fields, so the name "Spare" is important.

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey added the CCB:Ready Pull request is ready for CCB discussion label May 2, 2023
In this case the member has no type, and should be translated to an
array of uint8 values of the appropriate size.
@dzbaker dzbaker added CCB:Approved Indicates code review and approval by community CCB and removed CCB:Ready Pull request is ready for CCB discussion labels May 4, 2023
@dzbaker dzbaker merged commit fd91c41 into nasa:main May 4, 2023
@jphickey jphickey deleted the fix-53-padding branch October 6, 2023 15:55
dzbaker pushed a commit that referenced this pull request Jan 15, 2026
When building a table, if there is no exact match for the table name in
the database then check for a numeric suffix and trim it off.  This
allows multiple tables to be registered using the same table definition,
by adding a numeric suffix to the name.

In particular MD requires this feature, as it has a variable number of
dwell tables that have a name DWELL_TABLE<x>.
dzbaker pushed a commit that referenced this pull request Jan 15, 2026
Fix #54, trim trailing numbers on table name match
@dzbaker dzbaker added this to the v7.0.0 milestone Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CCB:Approved Indicates code review and approval by community CCB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants