forked from JSBSim-Team/jsbsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JSBSimSystem.xsd
1205 lines (1160 loc) · 47.2 KB
/
JSBSimSystem.xsd
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
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- The systems definition -->
<xs:element name="system">
<xs:annotation>
<xs:documentation>
The system definition can be present any number of times in an aircraft definition. This
section is used to define an arbitrary system, such as navigation, guidance, or control
avionics, electrical systems, etc. The system, autopilot, and flight_control sections of a
configuration file are all built the same way, using channel elements that contain strings
of component definitions.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="property">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="value" use="optional" type="xs:double"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="channel"/>
</xs:choice>
<xs:attribute name="name" use="optional" type="xs:string"/>
<xs:attribute name="file" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Channel -->
<xs:element name="channel">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element ref="actuator"/>
<xs:element ref="aerosurface_scale"/>
<xs:element ref="integrator"/>
<xs:element ref="kinematic"/>
<xs:element ref="lag_filter"/>
<xs:element ref="lead_lag_filter"/>
<xs:element ref="pid"/>
<xs:element ref="pure_gain"/>
<xs:element ref="scheduled_gain"/>
<xs:element ref="second_order_filter"/>
<xs:element ref="sensor"/>
<xs:element ref="summer"/>
<xs:element ref="switch"/>
<xs:element ref="washout_filter"/>
<xs:element ref="deadband"/>
<xs:element ref="fcs_function"/>
</xs:choice>
<xs:attribute name="name" use="required" type="xs:string">
<xs:annotation><xs:documentation>
The name for a channel is simply a brief, descriptive, name. The name
is not used for anything other than display.
</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="execute" type="xs:string">
<xs:annotation><xs:documentation>
The execute attribute value refers to a property that evaluates to a
boolean indicating whether the channel should execute or not. If this
attribute is not supplied, the channel always executes.
</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<!-- Lag filter -->
<xs:element name="lag_filter">
<xs:complexType>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="c1" type="xs:double"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" type="xs:string" minOccurs="0"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Summer -->
<xs:element name="summer">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" maxOccurs="unbounded"/>
<xs:element name="bias" type="xs:float" minOccurs="0"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" type="xs:string" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Aerosurface scale -->
<xs:element name="aerosurface_scale">
<xs:annotation>
<xs:documentation>
The aerosurface scale component maps an input value (which must fall within the span specified in the domain element)
to an output value that falls within the span specified in the range element. For example, if the actual input value is 30% of
the distance from the minimum to the maximum domain value, the output would be the value corresponding
to 30% of the span of the range, from the minimum range value.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element ref="domain" minOccurs="0" maxOccurs="1"/>
<xs:element ref="range" minOccurs="1" maxOccurs="1"/>
<xs:element name="gain" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The Gain element may contain a fixed numeric value, or it may be a property name.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:choice>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Kinematic device -->
<xs:element name="kinematic">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element ref="traverse"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="traverse">
<xs:complexType>
<xs:sequence>
<xs:element ref="setting" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="setting">
<xs:complexType>
<xs:sequence>
<xs:element name="position" type="xs:double"/>
<xs:element name="time" type="xs:double"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Lead lag filter -->
<xs:element name="lead_lag_filter">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="c1" type="xs:double"/>
<xs:element name="c2" type="xs:double" minOccurs="0"/>
<xs:element name="c3" type="xs:double" minOccurs="0"/>
<xs:element name="c4" type="xs:double"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Washout filter -->
<xs:element name="washout_filter">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" maxOccurs="1" minOccurs="1"/>
<xs:element name="c1" type="xs:double" minOccurs="1" maxOccurs="1"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Integrator -->
<xs:element name="integrator">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" maxOccurs="1" minOccurs="1"/>
<xs:element name="c1" type="xs:double" minOccurs="1" maxOccurs="1"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="trigger" type="xs:string" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- PID controller -->
<xs:element name="pid">
<xs:complexType>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="kp" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>Specifies the proportional constant value or property.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="ki" minOccurs="0">
<xs:annotation><xs:documentation>The integrator control action gain.</xs:documentation></xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" default="ab2">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="rect"><xs:annotation><xs:documentation>Specifies a rectangular integrator.</xs:documentation></xs:annotation></xs:enumeration>
<xs:enumeration value="trap"><xs:annotation><xs:documentation>Specifies a trapezoidal integrator.</xs:documentation></xs:annotation></xs:enumeration>
<xs:enumeration value="ab2"><xs:annotation><xs:documentation>Specifies an Adams-Bashforth second order integrator. [default]</xs:documentation></xs:annotation></xs:enumeration>
<xs:enumeration value="ab3"><xs:annotation><xs:documentation>Specifies an Adams-Bashforth third order integrator.</xs:documentation></xs:annotation></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="kd" type="xs:float" minOccurs="0">
<xs:annotation><xs:documentation>The derivative control action gain.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="trigger" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>
The trigger element provides a way to specify a property that controls
how the integrator works, and is designed for wind-up protection. If
the value of the property supplied to the trigger element is 0, there
is no effect. If the value of the trigger property is non-zero,
(positive or negative) then the integrator does not integrate and
holds the last value. If the trigger property value is negative, the
integrator value is reset to 0.0.
</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="pvdot" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>
pvdot is the process variable time derivative. If not specified,
the derivative control action will be determined from the change
in the input from the last time step (divided by the time step
size). If pvdot is specified, the specified value will be used
instead. The difference may be minimal in practice - UNLESS there
is an unnatural step change in the input value. For instance, if
the control input (process variable) is alpha, an alphadot value
is calculated as mentioned from the previous value. If pvdot is
explicitly specified as alphadot (alphadot is calculated and is
available as a native property in JSBSim) the results can be
smoother - particularly if there is a step change in the error
signal (the input) due to a step change in the target state. To
be clear, pvdot is meant to be the time derivative of the
input parameter. If the input to the PID controller is pitch rate
then pvdot should be pitch acceleration. If altitude is the input
then pvdot should be altitude rate.
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:all>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="type" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="standard">
<xs:annotation>
<xs:documentation>
Specifies a standard PID controller where the output is defined
as: Output = Kp * (Input + Integrator_value + Kd*Dval), where
Dval is the time derivative of the input signel.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<!-- Second order filter -->
<xs:element name="second_order_filter">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="c1" type="xs:double"/>
<xs:element name="c2" type="xs:double"/>
<xs:element name="c3" type="xs:double"/>
<xs:element name="c4" type="xs:double"/>
<xs:element name="c5" type="xs:double"/>
<xs:element name="c6" type="xs:double"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Pure gain -->
<xs:element name="pure_gain">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="gain" type="xs:string">
<xs:annotation>
<xs:documentation>The Gain element may contain a fixed numeric value, or it may be a property name.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Scheduled gain -->
<xs:element name="scheduled_gain">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element ref="table"/>
<xs:element name="gain" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The Gain element may contain a fixed numeric value, or it may be a property name.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Switch -->
<xs:element name="switch">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="0"/>
<xs:element ref="default" minOccurs="0"/>
<xs:element ref="test" minOccurs="1" maxOccurs="unbounded"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Sensor -->
<xs:element name="sensor">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" maxOccurs="1"/>
<xs:element name="lag" type="xs:float" maxOccurs="1"/>
<xs:element ref="noise" maxOccurs="1"/>
<xs:element ref="quantization" maxOccurs="1"/>
<xs:element name="drift_rate" type="xs:float" maxOccurs="1"/>
<xs:element name="bias" type="xs:float" maxOccurs="1"/>
<xs:element ref="clipto" maxOccurs="1"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Actuator -->
<xs:element name="actuator">
<xs:annotation>
<xs:documentation>
An actuator component models a general purpose mechanical effector. The actuator can
exhibit a lag, can be rate- and position-limited, can feature a bias, can have a deadband,
and it can feature hysteresis.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" minOccurs="1" type="xs:string"/>
<xs:element name="lag" type="xs:float" minOccurs="0"/>
<xs:element name="rate_limit" minOccurs="0" maxOccurs="2">
<xs:annotation><xs:documentation>
The rate limit can be specified as a numeric value or as a property.
Further, an "incr" or "decr" sense attribute to specify which
direction the rate limit should apply to.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="sense">
<xs:annotation><xs:documentation>
The sense attribute determines which direction the rate
limit applies to. If no sense is given, the rate limit
applies to both directions equally. If "incr" is specified
then the rate limit applies only to the rate of increase.
If "decr" is specified, then the rate limit applies only to
a decreasing rate. The decreasing rate limit - if given - is
assumed to be negative - no negative sign is required.
</xs:documentation></xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="incr"><xs:annotation><xs:documentation>Specify this type when the rate limit applies to an increasing rate.</xs:documentation></xs:annotation></xs:enumeration>
<xs:enumeration value="decr"><xs:annotation><xs:documentation>Specify this type when the rate limit applies to a decreasing rate.</xs:documentation></xs:annotation></xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="bias" type="xs:float" minOccurs="0"/>
<xs:element name="deadband_width" type="xs:float" minOccurs="0"/>
<xs:element name="hysteresis_width" type="xs:float" minOccurs="0"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Deadband -->
<xs:element name="deadband">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="width" type="xs:float"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- FCS function -->
<xs:element name="fcs_function">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="0"/>
<xs:element ref="function"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!--
<xs:group name="functionGroup">
<xs:sequence>
<xs:element ref="input"/>
<xs:element name="function"/>
</xs:sequence>
</xs:group>
<xs:group name="deadbandGroup">
<xs:sequence>
<xs:element ref="input"/>
<xs:element ref="width"/>
</xs:sequence>
</xs:group>
-->
<xs:element name="test">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="logic" default="AND" use="optional">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="OR"/>
<xs:enumeration value="AND"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="value" use="required" type="xs:string"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="width" type="PositiveNumber">
<xs:annotation>
<xs:documentation>The width value specifies the width of the deadband - i.e.
the total span about zero where the input will be mapped to zero output.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="noise">
<xs:annotation>
<xs:documentation>
The noise can be entered as a percentage of the signal, or as an absolute value.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:float">
<xs:attribute name="variation">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PERCENT"/>
<xs:enumeration value="ABSOLUTE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="quantization">
<xs:complexType>
<xs:all>
<xs:element name="bits" type="xs:int"/>
<xs:element name="min" type="xs:float"/>
<xs:element name="max" type="xs:float"/>
</xs:all>
<xs:attribute type="xs:string" name="name"/>
</xs:complexType>
</xs:element>
<xs:element name="clipto">
<xs:annotation><xs:documentation>
This element specifies a minimum and/or a maximum limit that the
associated component will be allowed to have. The result will be
clipped to the specified limits.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="min" type="xs:double" minOccurs="0" maxOccurs="1"/>
<xs:element name="max" type="xs:double" minOccurs="0" maxOccurs="1"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="domain">
<xs:annotation><xs:documentation>
The domain defines the minimum and maximum input value allowed.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="min" type="xs:float" default="-1"/>
<xs:element name="max" type="xs:float" default="1"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="range">
<xs:annotation>
<xs:documentation>The range defines the minimum and maximum output value mapped..</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="min" type="xs:float" default="0"/>
<xs:element name="max" type="xs:float" default="0"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name="default">
<xs:complexType>
<xs:attribute name="value" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="table">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="independentVar"/>
<xs:element ref="tableData" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" use="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="independentVar">
<xs:complexType mixed="true">
<xs:attribute name="lookup" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="tableData">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="breakPoint" type="xs:double" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Functions -->
<xs:group name="func_group">
<xs:choice>
<xs:element ref="table"/>
<xs:element ref="product"/>
<xs:element ref="difference"/>
<xs:element ref="sum"/>
<xs:element ref="quotient"/>
<xs:element ref="pow"/>
<xs:element ref="sqrt"/>
<xs:element ref="abs"/>
<xs:element ref="sin"/>
<xs:element ref="cos"/>
<xs:element ref="tan"/>
<xs:element ref="asin"/>
<xs:element ref="acos"/>
<xs:element ref="atan"/>
<xs:element ref="atan2"/>
<xs:element ref="min"/>
<xs:element ref="max"/>
<xs:element ref="avg"/>
<xs:element ref="fraction"/>
<xs:element ref="integer"/>
<xs:element ref="mod"/>
<xs:element name="random"/>
<xs:element name="urandom"/>
<xs:element name="pi"/>
<xs:element ref="toradians"/>
<xs:element ref="todegrees"/>
<xs:element ref="lt"/>
<xs:element ref="le"/>
<xs:element ref="gt"/>
<xs:element ref="ge"/>
<xs:element ref="eq"/>
<xs:element ref="nq"/>
<xs:element ref="and"/>
<xs:element ref="or"/>
<xs:element ref="not"/>
<xs:element ref="ifthen"/>
<xs:element name="switch"> <!-- Switch element has to go here to disambiguate from FCS switch component -->
<xs:annotation><xs:documentation>
Uses the integer value of the first immediate child element as an
index to select one of the subsequent immediate child elements to
return the value of.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice minOccurs="3" maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:group>
<xs:element name="function">
<xs:complexType>
<xs:sequence>
<xs:element ref="description" minOccurs="0" maxOccurs="1"/>
<xs:group ref="func_group"/>
</xs:sequence>
<xs:attribute name="name" use="optional"/>
</xs:complexType>
</xs:element>
<xs:element name="product">
<xs:annotation><xs:documentation>
Multiplies together the values of all immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="difference">
<xs:annotation><xs:documentation>
Subtracts from the value of the first immediate child element the values of all subsequent immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="2">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="sum">
<xs:annotation><xs:documentation>
Sums the values of all immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="quotient">
<xs:annotation><xs:documentation>
Divides the value of the first immediate child element by the value of the second immediate child element.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="2">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="abs">
<xs:annotation><xs:documentation>
Returns the absolute value of the immediate child element.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="sqrt">
<xs:annotation><xs:documentation>
Returns the square root of the value of the immediate child element.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="toradians">
<xs:annotation><xs:documentation>
Converts the argument presumed to be expressed in degrees to radians by
multiplying the value of the immediate child element by pi/180.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="todegrees">
<xs:annotation><xs:documentation>
Converts the argument presumed to be expressed in radians to degrees by
multiplying the value of the immediate child element by 180/pi.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="pow">
<xs:annotation><xs:documentation>
Raises the value of the first immediate child element to the power of the
value of the second immediate child element.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="2" minOccurs="2">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="sin">
<xs:annotation><xs:documentation>
Calculates the sine of the value of the immediate child element (the
argument is expected to be in radians).
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="cos">
<xs:annotation><xs:documentation>
Calculates the cosine of the value of the immediate child element (the
argument is expected to be in radians).
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="tan">
<xs:annotation><xs:documentation>
Calculates the tangent of the value of the immediate child element (the
argument is expected to be in radians).
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="asin">
<xs:annotation><xs:documentation>
Calculates the arcsine (inverse sine) of the value of the immediate child
element. The value provided should be in the range from -1 to +1. The
value returned will be expressed in radians, and will be in the range
from -pi/2 to +pi/2.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="acos">
<xs:annotation><xs:documentation>
Calculates the arccosine (inverse cosine) of the value of the immediate
child element. The value provided should be in the range from -1 to +1.
The value returned will be expressed in radians, and will be in the range
from 0 to pi.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="atan">
<xs:annotation><xs:documentation>
Calculates the inverse tangent of the value of the immediate child
element. The value returned will be expressed in radians, and will be in
the range from -pi/2 to +pi/2.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="1" minOccurs="1">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="atan2">
<xs:annotation><xs:documentation>
Calculates the inverse tangent of the value of the immediate child
elements, Y/X (in that order). It even works for X values near zero.
The value returned will be expressed in radians, and in the range
-pi to +pi.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="2" minOccurs="2">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="min">
<xs:annotation><xs:documentation>
Returns the smallest value from all the immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="max">
<xs:annotation><xs:documentation>
Returns the largest value from all the immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="avg">
<xs:annotation><xs:documentation>
Returns the average value of all the immediate child elements.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice minOccurs="2" maxOccurs="unbounded">
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="fraction">
<xs:annotation><xs:documentation>
Returns the fractional part of the value of the immediate child element .
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="integer">
<xs:annotation><xs:documentation>
Returns the integer part of the value of the immediate child element.
</xs:documentation></xs:annotation>
<xs:complexType>
<xs:choice>
<xs:group ref="func_group"/>
<xs:element ref="value"/>
<xs:element ref="property"/>
<xs:element name="v"/>
<xs:element name="p"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name="value" type="xs:double"/>
<xs:element name="mod">
<xs:annotation><xs:documentation>
Returns the remainder from the integer division of the value of the first
immediate child element by the second immediate child element, X/Y
(X modulo Y). The value returned is the value X-I*Y, for the largest
integer I such that if Y is nonzero, the result has the same sign as X
and magnitude less than the magnitude of Y. For instance, the expression