-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommandDictionary.rnc
705 lines (569 loc) · 27 KB
/
CommandDictionary.rnc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
#
# AMPCS Multi-mission flight command dictionary schema.
#
# This schema defines a common, multi-mission format for expression of the
# command portion of the flight-ground dictionary.
# Refer to the CCSDS Packet Telemetry Standard for bit and byte ordering of values.
# All values that are inserted to the command stream are assumed to be in
# Global Data Representation (GDR) format with the most significant element first.
#
# Copyright (c) 2015 California Institute of Technology, All Rights Reserved
# JPL Proprietary Information
#
# Change Log:
# V1.0 05/20/12 M. DeMore - Original version by DeMore/Wright
# V1.1 05/20/13 M. DeMore - Moved into AMPCS, normalized header
# format, minor reorganization.
# V2.0 07/08/13 M. DeMore - Removed optional element structures
# V2.1 09/18/13 M. DeMore - Minor updates in response to DMS SIS Review
# (MPCS-5342)
# V3.0 11/08/13 M. DeMore - Major updates in response to command
# dictionary refactoring (MPCS-5521)
# V4.0 01/08/14 M. DeMore - Major updates in response to command
# dictionary implementation (MPCS-4802)
# V4.1 07/14/14 J. Braun - Delete space in numeric-arg-length-def
# (MPCS-5844)
# V4.2 07/14/14 J. Braun - Introduce hex-only-int format type in
# CommonDictionary.rnc and use that for opcode (MPCS-5863)
# V5.0 08/05/15 M. DeMore - Reduced length of string arguments,
# clarified comments for time arguments and units,
# made time units optional. Removed change logs
# at the command level. Made definition of HW
# command opcode match that on FSW command.
# Deprecated numeric_arg in factory of specific
# it, unsigned, and float types. Allow integer argument
# bit lengths not a multiple of 8. Added command class
# to FSW commands. Added uplink file types.
# (MPCS-7489)
# V5.1 09/29/15 M. DeMore - Correct floating point argument length
# and clarify that all lengths are bit lengths.
# V5.2 11/09/15 M. DeMore - Enlarged opcodes to 32 bits. (MPCS-7644)
# V5.3 04/28/16 M. Verdugo - Allow default values for unsigned/integer
# args to be stated in hex. (MPCS-8071)
# This is the final change for AMPCS R7.3 (MGSS ECR-117883)
# v5.4 09/06/17 R. Puncel - Update comment re: enum_arg for clarity
# (MPCS-8961)
namespace rng = "http://relaxng.org/ns/structure/1.0"
datatypes xsd = "http://www.w3.org/2001/XMLSchema-datatypes"
# Include common dictionary XML definitions
include "CommonDictionary.rnc"
# Start XML Document here
start = command-dictionary-def
# Top-level element for the command dictionary. This contains a common header,
# any enumeration definitions for command arguments, and the list of command
# definitions.
command-dictionary-def = element command_dictionary {
# Standard dictionary version header and general change log
header-def,
# M. DeMore - MPCS-7489 - 8/15/15. Added file types.
#
# Uplink file type definitions. If omitted, there are two types
# by default:
# GENERIC = 0
# SEQUENCE = 1
file-types-def?,
# Define 0 or more enumeration tables for use by command arguments
element enum_definitions { enum-table-def* }?,
# Define 0 or more commands
element command_definitions { command-definition-def* }
}
# M. DeMore - MPCS-7489 - 8/15/15. Added uplink file types.
#
# Uplink file types indicate the types of files that can be
# uplinked by the current mission. The type is identified
# in the encoded file load.
file-types-def = element uplink_file_types {
# Defines a single file type
element file_type {
# The name of this file type, for user interfaces
attribute name { symbol-def-32 },
# The numeric ID of this file type, for encoding in
# the binary file load.
attribute id {xsd:nonNegativeInteger}
}+
}
# A command definition can be a FSW command or a hardware command
command-definition-def = fsw-command-def | hw-command-def
# Defines a flight software command. These types of commands have
# arguments.
fsw-command-def = element fsw_command {
# M. DeMore - 11/9/15 - MPCS-7644. Enlarge opcode to 32 bits
#
# The opcode is an unsigned integer occupying 32 bits, represented as hex.
# Must be unique.
attribute opcode { hex-only-int-32 },
# The unique name of the command. This is how the command will be
# represented on displays.
attribute stem { stem-def },
# M. DeMore - MPCS-7489 - 8/15/15. Added command-class-def. Defaults
# to "FSW"
attribute class { fsw-command-class-def }?,
# M. DeMore - MPCS-7489 - 8/15/15. Added float, int, and unsigned
# argument types.
#
# Zero or more command arguments.
element arguments {
(numeric-argument-def | enum-argument-def | var-string-argument-def |
fixed-string-argument-def | time-argument-def | boolean-argument-def |
repeat-argument-def | fill-argument-def | int-argument-def |
unsigned-argument-def | float-argument-def )+
}?,
# This is used to category different commands into groups. Possible
# category names are "module", "ops category", "subsystem", ...
# It is possible that there are multiple ways of organizing groups of
# commands, so that there may be more than one category entry for a command.
categories-def?,
# The long description of the command.
element description { xsd:string }?,
# Additional dictionary attributes, defined using an key-value XML
# container. Use this to capture additional mission-specific
# information on a command.
attributes-def?
# M. DeMore - MPCS-7489 - 8/15/15. Removed change-log-def
}
# Defines a flight hardware command. Hardware commands are unique in
# that they do not have arguments.
hw-command-def = element hw_command {
# M. DeMore - MPCS-7489 - 8/5/15. Corrected from hex-int. Decimal
# format is not permitted.
#
# M. DeMore - MPCS-7644 - 11/9/15. Enlarged to 32 bits
#
# The opcode is an unsigned integer represented as hex. Must be
# unique.
attribute opcode { hex-only-int-32 },
# The unique name of the command. This is how the command will be
# represented on displays.
attribute stem { stem-def },
# This is used to category different commands into groups. Possible
# category names are "module", "ops category", "subsystem", ...
# It is possible that there are multiple ways of organizing groups of
# commands, so that there may be more than one category entry for a command.
categories-def?,
# The long description of the command.
element description { xsd:string }?,
# Additional dictionary attributes, defined using an key-value XML
# container. Use this to capture additional mission-specific
# information on a command.
attributes-def?
# M. DeMore - MPCS-7489 - 8/15/15. Removed change-log-def
}
# M. DeMore - MPCS-7489 - 8/15/15. Marked as deprecated.
#
# DEPRECATED - Do not use in new dictionaries. Use int-argument-def,
# unsigned-argument-def, or float-argument-def
#
# Defines a single numeric command argument.
numeric-argument-def = element numeric_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command
# systems that allow such a construct.
attribute name { name-def },
# The data type of the argument.
attribute type { numeric-arg-type-def },
# The length of the argument in bits. Float must be either 32 or 64.
# Integer types can be 8, 16, 32, or 64 bits.
attribute bit_length { numeric-arg-length-def },
# M. DeMore - 9/23/13 - MPCS-5342. Removed note about units conversion.
# AMPCS does no units conversion.
#
# The units of the command argument. Units are required on numeric
# command arguments for spacecraft safety.
attribute units { xsd:token },
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string }?,
# The valid ranges of the argument value. For numeric arguments,
# comparison to valid range is a numeric comparison.
arg-range-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified
# as keyword/value attributes.
attributes-def?
}
# M. DeMore - MPCS-7489 - 8/15/15. Added int-argument-def.
#
# Defines a single signed integer command argument.
int-argument-def = element integer_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command
# systems that allow such a construct.
attribute name { name-def },
# The length of the argument in bits.
attribute bit_length { integer-arg-length-def },
# M. DeMore - 9/23/13 - MPCS-5342. Removed note about units conversion.
# AMPCS does no units conversion.
#
# The units of the command argument. Units are required on numeric
# command arguments for spacecraft safety.
attribute units { xsd:token },
# M. Verdugo - 4/28/16. Allow to be specified in hex.
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:integer | hex-int }?,
# The valid ranges of the argument value. For numeric arguments,
# comparison to valid range is a numeric comparison.
int-arg-range-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified
# as keyword/value attributes.
attributes-def?
}
# M. DeMore - MPCS-7489 - 8/15/15. Added unsigned-argument-def.
#
# Defines a single unsigned integer command argument.
unsigned-argument-def = element unsigned_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command
# systems that allow such a construct.
attribute name { name-def },
# The length of the argument in bits.
attribute bit_length { integer-arg-length-def },
# M. DeMore - 9/23/13 - MPCS-5342. Removed note about units conversion.
# AMPCS does no units conversion.
#
# The units of the command argument. Units are required on numeric
# command arguments for spacecraft safety.
attribute units { xsd:token },
# M. Verdugo - 4/28/16. Allow to be specified in hex.
# The default value, if the argument is not specified in the command.
attribute default_value { hex-int }?,
# The valid ranges of the argument value. For numeric arguments,
# comparison to valid range is a numeric comparison.
unsigned-arg-range-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified
# as keyword/value attributes.
attributes-def?
}
# M. DeMore - MPCS-7489 - 8/15/15. Added float-argument-def.
#
# Defines a single floating point command argument.
float-argument-def = element float_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command
# systems that allow such a construct.
attribute name { name-def },
# The length of the argument in bits. Float must be either 32 or 64.
attribute bit_length { float-arg-length-def },
# M. DeMore - 9/23/13 - MPCS-5342. Removed note about units conversion.
# AMPCS does no units conversion.
#
# The units of the command argument. Units are required on numeric
# command arguments for spacecraft safety.
attribute units { xsd:token },
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:double }?,
# The valid ranges of the argument value. For numeric arguments,
# comparison to valid range is a numeric comparison.
float-arg-range-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified
# as keyword/value attributes.
attributes-def?
}
# Defines a single enumerated command argument. Enumerated arguments have
# both an ordinal representation, and a symbolic representation, where the
# ordinal maps to the symbol.
enum-argument-def = element enum_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command
# systems that allow such a construct.
attribute name { name-def },
# M. DeMore - MPCS-7489 - 8/15/15. Allow any integer bit length
# M. DeMore - MPCS-7644 - 11/9/15. Changed length to an enum-specific
# definition.
#
# The length of the numeric/ordinal argument in bits. Does not define
# or effect the length of the symbols defined by the enumeration.
attribute bit_length { enum-arg-length-def },
# M. DeMore - 9/18/13 - MPCS-5342. Removed units element as not
# applicable to enum arguments.
# This is the name of the enumeration table for argument values. Required.
attribute enum_name { name-def },
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string }?,
# The valid ranges of the argument value. For enum arguments, comparison
# to valid range is based upon the ordinal (numeric value) of the
# corresponding enum symbolic values, but the range is specified using
# symbolic values.
arg-range-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument,
# specified as keyword/value attributes.
attributes-def?
}
# Defines a single fixed length string command argument.
fixed-string-argument-def = element fixed_string_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# M. DeMore - MPCS-7489 - 8/5/15. Changed notes about maximum length.
#
# String bit_length can be up to 8152 (1019 bytes) in length. Shorter
# strings will be padded to this stated length. Note that since
# telecommand frames generally contain opcodes, the 1019 maximum may not
# apply to the current mission. The actual character limit is 1019
# less the opcode byte length.
attribute bit_length { string-arg-length-def },
# M. DeMore - 9/18/13 - MPCS-5342. Removed units element as not
# applicable to string arguments.
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string }?,
# Valid regular expression for string arguments. If this expression
# is present, the argument string will be validated against the given
# Posix regular expression. If it matches, it is a valid argument.
element valid_regex { xsd:normalizedString}?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified as
# keyword/value attributes.
attributes-def?
}
# Defines a single variable length string command argument.
var-string-argument-def = element var_string_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# This is the length of the prefix that precedes the string,
# where the value of this prefix states the actual length of the
# string at runtime.
attribute prefix_bit_length { prefix-length-def },
# M. DeMore - MPCS-7489 - 8/5/15. Changed notes about maximum length.
#
# This is the maximum allowed bit length of the string, which
# defaults to 8152 (1019 bytes). Note that since
# telecommand frames generally contain opcodes, the 1019 maximum may not
# apply to the current mission. The actual character limit is 1019
# less the opcode byte length.
attribute max_bit_length { string-arg-length-def }?,
# M. DeMore - 9/18/13 - MPCS-5342. Removed units element as not
# applicable to string arguments.
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string }?,
# Valid regular expression for string arguments. If this expression
# is present, the argument string will be validated against the given
# Posix regular expression. If it matches, it is a valid argument.
element valid_regex { xsd:normalizedString}?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified as
# keyword/value attributes.
attributes-def?
}
# Defines a single command time argument. Times are encoded as unsigned integers,
# which are assumed to correspond to SCLK.
time-argument-def = element time_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# The length of the time argument in bits.
# the length must match either the mission coarse SCLK length,
# or the mission coarse + fine SCLK length.
attribute bit_length { time-arg-length-def },
# M, DeMore - MPCS-7489 - 8/5/15. Clarified comments. Made optional.
#
# The units of the command argument FOR DISPLAY ONLY. This does not
# affect the way the argument is encoded or transmitted. The value
# transmitted is always SCLK.
attribute units { time-arg-unit-def }?,
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string | xsd:integer }?,
# MDD - MPCS-7489 - 8/15/15. Removed range-def, previously deprecated
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified
# as keyword/value attributes.
attributes-def?
}
# Defines a single command boolean argument. When encoded, the value for TRUE
# boolean arguments will have all bits set to 1s, and the value for FALSE
# boolean arguments will have all bits set to 0s.
boolean-argument-def = element boolean_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# M. DeMore - 11/9/15 - MPCS-7644. Correct type from integer
# length to boolean length
#
# The length of the argument in bits.
attribute bit_length { boolean-arg-length-def },
# The default value, if the argument is not specified in the command.
attribute default_value { xsd:string }?,
# Format information for this argument, for display in AMPCS command tools.
boolean-format-def?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified as
# keyword/value attributes.
attributes-def?
}
# Defines a command argument that is a repeating block of other arguments. A
# prefix in the resulting encoded data indicates how many times the arguments
# in the block are repeated in the following data block.
repeat-argument-def = element repeat_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# The length of the prefix argument in bits. The prefix is assumed to be
# an unsigned integer.
attribute prefix_bit_length { prefix-length-def },
# The long description of the command argument
element description { xsd:string }?,
# The definition of which arguments are to be repeated in the
# repeat block and how many times.
element repeat {
# The minimum number of times the argument block MUST repeat
attribute min { xsd:nonNegativeInteger },
# The maximum number of times the argument block CAN repeat.
# Must be greater than or equal to min.
attribute max { xsd:nonNegativeInteger },
# The sub-arguments in the repeat block. Can be any argument type
# other than another repeat argument.
#
# MDD - MPCS-7489 - 10/20/15. Added new argument types
element arguments {
(numeric-argument-def | enum-argument-def | var-string-argument-def |
fixed-string-argument-def | time-argument-def | boolean-argument-def |
fill-argument-def | float-argument-def | int-argument-def |
unsigned-argument-def )+
}
},
# Any mission specific commentary for this command argument, specified as
# keyword/value attributes.
attributes-def?
}
# Defines a single command fill argument. Fill arguments are supplied
# by the command system and not by the user.
fill-argument-def = element fill_arg {
# The name of the argument. This name must be unique within a command.
# It can be used for name=value argument replacement in the command systems
# that allow such a construct.
attribute name { name-def },
# The length of the argument in bits.
attribute bit_length { numeric-arg-length-def },
# The fill value, specified as binary fill bits. The bit_length above
# must be evenly divisible by the number of bits in the fill_value.
# The fill value will be repeated to fill the argument space
# up to the bit length. Will default to "0b0" if not specified.
attribute fill_value { bin-int }?,
# The long description of the command argument
element description { xsd:string }?,
# Any mission specific commentary for this command argument, specified as
# keyword/value attributes.
attributes-def?
}
# Numeric argument data types
numeric-arg-type-def = ( "unsigned" | "integer" | "float" )
# M. DeMore - MPCS-7489 - 8/15/15. Marked as deprecated.
#
# DEPRECATED - Do not use in new dictionaries.
#
# Numeric arguments valid bit lengths
numeric-arg-length-def = ( "8" | "16" | "32" | "64" )
# M. DeMore - MPCS-7489 - 8/15/15. Added definition.
#
# Valid range for bit length of an integer or unsigned argument.
integer-arg-length-def = xsd:positiveInteger { minInclusive = "1" maxInclusive = "64"}
# M. DeMore - MPCS-7489 - 8/15/15. Added definition.
#
# Valid range for bit length of a floating point argument.
float-arg-length-def = "32" | "64"
# Time arguments valid bit lengths
time-arg-length-def = xsd:nonNegativeInteger { minInclusive = "8" maxInclusive = "64"}
# M. DeMore - MPCS-7489 - 9/28/15
#
# Valid range for a boolean argument bit length
boolean-arg-length-def = xsd:nonNegativeInteger { minInclusive = "8" maxInclusive = "32"}
# M. DeMore - MPCS-7644 - 11/9/15. Added.
#
# Valid range for an enum argument bit length
enum-arg-length-def = xsd:nonNegativeInteger { minInclusive = "8" maxInclusive = "32"}
# M. DeMore - MPCS-7489 - 8/5/15. Decreased max string length.
#
# Valid bit length range for fixed string arguments and
# maximum length for variable string arguments. Note that since
# telecommand frames generally contain opcodes, the 1019 maximum may not
# apply to the current mission. The actual character limit is 1019
# less the opcode byte length.
string-arg-length-def = xsd:nonNegativeInteger { maxInclusive = "8152"}
# Valid bit lengths for repeat argument and variable string prefixes
prefix-length-def = ( "8" | "16" )
# M. DeMore - MPCS-7489 - 8/5/15. Added notes about usage.
#
# Valid display units for time arguments. This is the unit in
# which the system will display the time argument value in command
# interfaces. It does not reflect upon the encoding of the argument.
# Time arguments are always converted to SCLK and encoded as SCLK.
time-arg-unit-def = ( "SCLK" | "SCET" | "LST" )
# Element used to define valid argument ranges. Note that multiple
# ranges can be specified.
arg-range-def = element range_of_values {
# The value is valid if it is within this range.
element include {
attribute min { xsd:normalizedString },
attribute max { xsd:normalizedString }
}+
}
# M. DeMore - MPCS-7489 - 8/15/15. Added int-arg-range-def
#
# Element used to define valid argument ranges for signed integers.
# Note that multiple ranges can be specified.
int-arg-range-def = element range_of_values {
# The value is valid if it is within this range.
element include {
attribute min { xsd:integer },
attribute max { xsd:integer }
}+
}
# M. DeMore - MPCS-7489 - 8/15/15. Added unsigned-range-def
#
# Element used to define valid argument ranges for signed integers.
# Note that multiple ranges can be specified.
unsigned-arg-range-def = element range_of_values {
# The value is valid if it is within this range.
element include {
attribute min { xsd:nonNegativeInteger },
attribute max { xsd:nonNegativeInteger }
}+
}
# M. DeMore - MPCS-7489 - 8/15/15. Added float-range-def
#
# Element used to define valid argument ranges for floating point
# numbers. Note that multiple ranges can be specified.
float-arg-range-def = element range_of_values {
# The value is valid if it is within this range.
element include {
attribute min { xsd:double },
attribute max { xsd:double }
}+
}
# Format specifier for display of a boolean telemetry value on the ground.
# Default in the ground system is to display TRUE for non-zero values,
# and FALSE for zero values. This element allows different
# values, such as ON and OFF, to be displayed instead.
boolean-format-def = element boolean_format {
# Value to display as status for TRUE boolean values.
attribute true_str { symbol-def },
# Value to display as status for FALSE boolean values.
attribute false_str { symbol-def }
}
# Binary integer pattern
bin-int = xsd:token { pattern = "0b[01]+" }
# M. DeMore - MPCS-7489 - 8/15/15. Added command classes.
#
# Different command classes may be encoded using different
# virtual channels, or have other encoding differences.
#
# FSW - A standard flight software command
# SEQ - A sequence directive/command. used for managing execution of
# commands in sequence files
fsw-command-class-def = ("FSW" | "SEQ")