nasa / EdsLib

CCSDS SOIS Electronic Data Sheet Tool and Library
Apache License 2.0
31 stars 12 forks source link

Fix #53, generate padding in JSON correctly #54

Closed jphickey closed 1 year ago

jphickey commented 1 year ago

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.