Asterix CAT010 Decode Error
CAT010 Decode Error
- 041, Position in WGS-84 Coordinates LSB,it's should be 180/2^31,but now it's 180/2^25.
//wrong code
static const FieldPart I010_041_LAT = { 32, 180.0/33554432.0, FIELD_PART_FLOAT, &hf_010_041_LAT, NULL };
static const FieldPart I010_041_LON = { 32, 180.0/33554432.0, FIELD_PART_FLOAT, &hf_010_041_LON, NULL };
//should be
static const FieldPart I010_041_LAT = { 32, 180.0/2147483648.0, FIELD_PART_FLOAT, &hf_010_041_LAT, NULL };
static const FieldPart I010_041_LON = { 32, 180.0/2147483648.0, FIELD_PART_FLOAT, &hf_010_041_LON, NULL };
- 042, Position in Cartesian Coordinates It's should be Four-octet fixed length Data Item,X-Component two-octet,Y-Component two-octet,but now it‘s three-octet total six-octet length.
//wrong code
static const AsterixField I010_042 = { FIXED, 6, 0, 0, &hf_010_042, I010_042_PARTS, { NULL } };
//should be
static const AsterixField I010_042 = { FIXED, 4, 0, 0, &hf_010_042, I010_042_PARTS, { NULL } };