|
3 | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
4 | 4 | xsi:schemaLocation="http://www.omg.org/space/xtce https://www.omg.org/spec/XTCE/20180204/SpaceSystem.xsd" |
5 | 5 | name="TestIncludeCondition"> |
6 | | - |
| 6 | + |
7 | 7 | <xtce:Header date="2024-11-06" version="1.0" author="Space Packet Parser Test"/> |
8 | | - |
| 8 | + |
9 | 9 | <xtce:TelemetryMetaData> |
10 | | - |
| 10 | + |
11 | 11 | <!-- Define parameter types --> |
12 | 12 | <xtce:ParameterTypeSet> |
13 | 13 | <xtce:IntegerParameterType name="UINT8_Type" signed="false"> |
14 | 14 | <xtce:IntegerDataEncoding sizeInBits="8" encoding="unsigned"/> |
15 | 15 | </xtce:IntegerParameterType> |
16 | | - |
| 16 | + |
17 | 17 | <xtce:IntegerParameterType name="UINT16_Type" signed="false"> |
18 | 18 | <xtce:IntegerDataEncoding sizeInBits="16" encoding="unsigned"/> |
19 | 19 | </xtce:IntegerParameterType> |
20 | | - |
| 20 | + |
21 | 21 | <xtce:IntegerParameterType name="UINT32_Type" signed="false"> |
22 | 22 | <xtce:IntegerDataEncoding sizeInBits="32" encoding="unsigned"/> |
23 | 23 | </xtce:IntegerParameterType> |
24 | 24 | </xtce:ParameterTypeSet> |
25 | | - |
| 25 | + |
26 | 26 | <!-- Define parameters --> |
27 | 27 | <xtce:ParameterSet> |
28 | 28 | <xtce:Parameter name="Mode" parameterTypeRef="UINT8_Type" shortDescription="Mode indicator"/> |
|
31 | 31 | <xtce:Parameter name="OptionalData2" parameterTypeRef="UINT16_Type" shortDescription="Optional data field 2"/> |
32 | 32 | <xtce:Parameter name="MandatoryData" parameterTypeRef="UINT32_Type" shortDescription="Always included data"/> |
33 | 33 | </xtce:ParameterSet> |
34 | | - |
| 34 | + |
35 | 35 | <!-- Define containers --> |
36 | 36 | <xtce:ContainerSet> |
37 | 37 | <xtce:SequenceContainer name="ConditionalTestPacket"> |
38 | 38 | <xtce:EntryList> |
39 | 39 | <!-- Mode parameter - always included --> |
40 | 40 | <xtce:ParameterRefEntry parameterRef="Mode"/> |
41 | | - |
| 41 | + |
42 | 42 | <!-- Flag parameter - always included --> |
43 | 43 | <xtce:ParameterRefEntry parameterRef="Flag"/> |
44 | | - |
| 44 | + |
45 | 45 | <!-- OptionalData1 - included only if Mode == 1 --> |
46 | 46 | <xtce:ParameterRefEntry parameterRef="OptionalData1"> |
47 | 47 | <xtce:IncludeCondition> |
48 | 48 | <xtce:Comparison parameterRef="Mode" value="1" comparisonOperator="==" useCalibratedValue="true"/> |
49 | 49 | </xtce:IncludeCondition> |
50 | 50 | </xtce:ParameterRefEntry> |
51 | | - |
| 51 | + |
52 | 52 | <!-- OptionalData2 - included only if Flag == 1 --> |
53 | 53 | <xtce:ParameterRefEntry parameterRef="OptionalData2"> |
54 | 54 | <xtce:IncludeCondition> |
55 | 55 | <xtce:Comparison parameterRef="Flag" value="1" comparisonOperator="==" useCalibratedValue="true"/> |
56 | 56 | </xtce:IncludeCondition> |
57 | 57 | </xtce:ParameterRefEntry> |
58 | | - |
| 58 | + |
59 | 59 | <!-- MandatoryData - always included --> |
60 | 60 | <xtce:ParameterRefEntry parameterRef="MandatoryData"/> |
61 | 61 | </xtce:EntryList> |
62 | 62 | </xtce:SequenceContainer> |
63 | 63 | </xtce:ContainerSet> |
64 | | - |
| 64 | + |
65 | 65 | </xtce:TelemetryMetaData> |
66 | | - |
| 66 | + |
67 | 67 | </xtce:SpaceSystem> |
0 commit comments