Reading matrix field in custom struct
Posted: 31 Aug 2021, 15:19
UAExpert 1.5.1 incorrectly decodes a custom struct which contains a field that is a matrix of values.
The type information uses v1.04 DataTypeDefinition attributes to define the type, and the type does not appear in the DataTypeDictionary (v1.03 format)
In the test case I tried, the custom struct has 3 fields
string
double[2,3]
double
It showed the 1st string value correctly but everything after that was wrong. It looks as if it expected an array, not a matrix, and interpreted the matrix dimensions as the value in field 0
The type information uses v1.04 DataTypeDefinition attributes to define the type, and the type does not appear in the DataTypeDictionary (v1.03 format)
In the test case I tried, the custom struct has 3 fields
string
double[2,3]
double
It showed the 1st string value correctly but everything after that was wrong. It looks as if it expected an array, not a matrix, and interpreted the matrix dimensions as the value in field 0