nasa / CCDD

CFS Command and Data Dictionary Tool (CCDDT)
81 stars 31 forks source link

XTCE import multiplies ending index of array dimensions by 10 #63

Closed JBBanks2 closed 5 years ago

JBBanks2 commented 5 years ago

Summary

When importing an XTCE into CCDD, the EndingIndex of an ArrayParameterRefEntry is multiplied by 10.

Details

Example XTCE (Click to expand) ```xml CCSDS_TLM_HDR CCSDS_CMD_HDR StreamID SecHdrFuncCode
jbanks CCDD Version: 1.5.8 (5-2-2019) Date: Mon Jun 03 15:13:58 CDT 2019 Project: test_project Host: localhost:5434 Endianess: big
0 4 0 30 ```

After importing this example XTCE the UI shows the following: image

(The lengths of a and b should be 5 and 31 respectively)

Other notes

Hope this helps!

KevinMcCluney commented 5 years ago

The issue is corrected in version 1.5.18.

The problem was that the EndingIndex value has to have 1 added to it for it to equal the size of the array. This was done, but was interpreted as a string addition, so instead of adding 30+1=31 it added '30'+'1'='301'.