forked from JSBSim-Team/jsbsim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JSBSim.xsd
1788 lines (1733 loc) · 64.9 KB
/
JSBSim.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" elementFormDefault="qualified">
<xs:annotation>
<xs:documentation> The JSBSim v2.0 configuration file format (JSBSim-ML) is the medium for describing
aircraft flight characteristics to the JSBSim code. For more information about JSBSim, see the
web site at: <a href="http://www.jsbsim.org">www.jsbsim.org</a>.
<p/>
The config file format stores and conveys the characteristics of any unique aircraft to the JSBSim
executable. The information that is specified in the configuration file includes:
<ul>
<li>Administrative</li>
<li>Geometric and measurement</li>
<li>Mass and weight/balance</li>
<li>Buoyant forces</li>
<li>Ground reactions</li>
<li>External reactions</li>
<li>Propulsion</li>
<li>Systems, Autopilot, and Flight Control</li>
<li>Aerodynamics</li>
<li>Input/Output</li>
</ul>
<p/>
The basic structure of the configuration file at the highest level is shown beginning with the
fdm_config element definition.
</xs:documentation>
</xs:annotation>
<xs:element name="fdm_config">
<xs:annotation>
<xs:documentation> This is the root element for a JSBSim config file. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="fileheader" />
<!--The file creation information. -->
<xs:element ref="metrics" />
<!--The geometric information for the aircraft model. -->
<xs:element ref="mass_balance" />
<!-- The weight and balance information for the aircraft model.</xs:annotation -->
<xs:element ref="ground_reactions" minOccurs="0" />
<!--The landing gear and/or structural contact point information for the aircraft model. -->
<xs:element ref="external_reactions" minOccurs="0" />
<!--The external reactions information for the aircraft model. -->
<xs:element ref="buoyant_forces" minOccurs="0" />
<!--The external reactions information for the aircraft model. -->
<xs:element ref="propulsion" minOccurs="0" />
<!-- The propulsion system information for the aircraft model. -->
<xs:element ref="system" minOccurs="0" maxOccurs="unbounded"/>
<!-- The systems reference -->
<xs:element ref="autopilot" minOccurs="0" />
<!-- The autopilot definition for the aircraft model. -->
<xs:element ref="flight_control" minOccurs="0" />
<!-- The flight control system for the aircraft model. -->
<xs:element ref="aerodynamics" minOccurs="0" />
<!-- The aerodynamics definition for the aircraft model. -->
<xs:element ref="input" minOccurs="0" />
<!-- The input definition for the aircraft model. -->
<xs:element ref="output" minOccurs="0" maxOccurs="unbounded" />
<!--The output specification for the aircraft model. -->
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string">
<xs:annotation>
<xs:documentation> The name of the aircraft this model represents. </xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="release" use="optional" default="PRODUCTION">
<xs:annotation>
<xs:documentation>
A release type of ALPHA or BETA will print out a warning message explaining
that this preproduction release may not be of high quality.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="PRODUCTION" />
<xs:enumeration value="ALPHA" />
<xs:enumeration value="BETA" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="version" use="required">
<xs:annotation>
<xs:documentation>Often, the version may initially be simply specified as "\$Revision: 1.29 $", so that
a configuration management tool such as cvs can automatically generate revision numbers.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9](.[0-9])*" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<!-- Global Types for this file -->
<xs:simpleType name="AreaType">
<xs:restriction base="xs:string">
<xs:enumeration value="M2" />
<xs:enumeration value="FT2" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LengthType">
<xs:restriction base="xs:string">
<xs:enumeration value="M" />
<xs:enumeration value="FT" />
<xs:enumeration value="IN" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="InertiaType">
<xs:restriction base="xs:string">
<xs:enumeration value="KG*M2" />
<xs:enumeration value="SLUG*FT2" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="WeightType">
<xs:restriction base="xs:string">
<xs:enumeration value="KG" />
<xs:enumeration value="LBS" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SpringCoeffType">
<xs:restriction base="xs:string">
<xs:enumeration value="LBS/FT" />
<xs:enumeration value="N/M" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DampingCoeffType">
<xs:restriction base="xs:string">
<xs:enumeration value="LBS/FT/SEC" />
<xs:enumeration value="N/M/SEC" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="AngleType">
<xs:restriction base="xs:string">
<xs:enumeration value="DEG" />
<xs:enumeration value="RAD" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PositiveNumber">
<xs:restriction base="xs:double">
<xs:minInclusive value="0" />
</xs:restriction>
</xs:simpleType>
<!-- FILEHEADER ELEMENT -->
<xs:element name="fileheader">
<xs:annotation>
<xs:documentation>The fileheader section is where important information about the model is recorded. The authors, their contact information
and affiliation, are all documented in this section. Notes about the model, as well as limitations and reference information are also recorded
in this section.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="author" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the model author[s].</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="email" type="xs:string">
<xs:annotation>
<xs:documentation>The contact email address for an author (optional).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="organization" type="xs:string">
<xs:annotation>
<xs:documentation>The organization that the author[s] belongs to.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element name="license" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This is an optional field for a license name and URL.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="licenseName" type="xs:string">
<xs:annotation>
<xs:documentation>The name of the license, e.g. "GPL".</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="licenseURL" type="xs:anyURI">
<xs:annotation>
<xs:documentation>The URL where the license can be found.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="sensitivity" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>This field stores the sensitivity classification, such as "classified", "secret", "proprietary", etc.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="filecreationdate" type="xs:date" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The date that the model was initially created in the form yyyy-mm-dd</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="version" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>The version number in the form #.#, or #.#.#, etc. This can also simply be a cvs keyword, such as "\$Revision: 1.29 $".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="copyright" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Copyright holder(s)</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>A simple text description of the aircraft model.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="note" type="xs:string">
<xs:annotation>
<xs:documentation>Notes are general notes about the model, perhaps such as special information helpful in flying it.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="limitation" type="xs:string">
<xs:annotation>
<xs:documentation>Limitations for this model should be noted. For instance, if gear is not aerodynamically modeled.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="reference">
<xs:annotation>
<xs:documentation>All references used in creating this model should be included.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="reference">
<xs:annotation>
<xs:documentation>A reference consists of an author, a publication date, a reference ID (document ID, etc.),
and of course a title. The title is the only item in a reference that is required.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="author" use="optional" />
<xs:attribute name="date" use="optional" />
<xs:attribute name="refID" use="optional" type="xs:string" />
<xs:attribute name="title" use="required" />
<xs:attribute name="URL" use="optional" type="xs:anyURI" />
</xs:complexType>
</xs:element>
<!-- METRICS SECTION -->
<xs:element name="metrics">
<xs:annotation>
<xs:documentation>
The metrics section holds information about the geometric characteristics of the aircraft that are important
for the equations of motion and aerodynamics. Wing (or reference) area, wing span (or lateral reference length),
and wing chord (or longitudinal reference length) are all recorded in this section. The center of graivty is also recorded
in this section. Units may be given as shown in this section.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="wingarea" />
<xs:element ref="wingspan" />
<xs:element ref="wing_incidence" minOccurs="0" />
<xs:element ref="chord" />
<xs:element ref="htailarea" minOccurs="0" />
<xs:element ref="htailarm" minOccurs="0" />
<xs:element ref="vtailarea" minOccurs="0" />
<xs:element ref="vtailarm" minOccurs="0" />
<xs:element ref="location" minOccurs="1" maxOccurs="3" />
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Wing Area -->
<xs:element name="wingarea">
<xs:annotation>
<xs:documentation> Wing area (reference area) for the vehicle being modeled. The default unit
is square feet (FT2). </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT2" type="AreaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Wing Span -->
<xs:element name="wingspan">
<xs:annotation>
<xs:documentation> Wingspan (lateral reference length) for the vehicle being modeled. The
default unit is feet (FT). </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT" type="LengthType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Wing Incidence -->
<xs:element name="wing_incidence">
<xs:annotation>
<xs:documentation> The angle the wing makes with the fuselage centerline for the vehicle being modeled. The default unit
is degrees (DEG). </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:double">
<xs:attribute name="unit" use="optional" default="DEG" type="AngleType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Wing Chord -->
<xs:element name="chord">
<xs:annotation>
<xs:documentation> Chord (longitudinal reference length) for the vehicle being modeled. The default
unit is feet (FT). </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT" type="LengthType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Horizontal tail area -->
<xs:element name="htailarea">
<xs:annotation>
<xs:documentation> Horizontal tail area. The default unit is square feet (FT2).</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT2" type="AreaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Horizontal tail arm -->
<xs:element name="htailarm">
<xs:annotation>
<xs:documentation> Horizontal tail arm. This is the distance from the center of gravity
to the quarter chord of the horizontal tail. The default unit is feet (FT).</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT" type="LengthType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Vertical tail area -->
<xs:element name="vtailarea">
<xs:annotation>
<xs:documentation> Vertical tail area. The default unit is square feet (FT2).
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT2" type="AreaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Vertical tail arm -->
<xs:element name="vtailarm">
<xs:annotation>
<xs:documentation> Vertical tail arm. The default unit is feet (FT). </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="FT" type="LengthType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- MASS BALANCE ELEMENT -->
<xs:element name="mass_balance">
<xs:annotation>
<xs:documentation>Mass properties are specified in this section. The moments of inertia
are specified first. All of Ixx, Iyy, and Izz are required, in order. The products of inertia are
not required but, if present, must appear in order Ixy, Ixz, Iyz. Next, the empty weight of
the aircraft, and the CG location are specified, in that order. Finally, any number of point masses
can be specified.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="ixx" minOccurs="1" />
<xs:element ref="iyy" minOccurs="1" />
<xs:element ref="izz" minOccurs="1" />
<xs:element ref="ixy" minOccurs="0" />
<xs:element ref="ixz" minOccurs="0" />
<xs:element ref="iyz" minOccurs="0" />
<xs:element ref="emptywt" minOccurs="1" />
<xs:element ref="location" minOccurs="1" />
<xs:element ref="pointmass" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- IXX -->
<xs:element name="ixx">
<xs:annotation>
<xs:documentation> Moment of Inertia, Ixx </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- IYY -->
<xs:element name="iyy">
<xs:annotation>
<xs:documentation> Moment of Inertia, Iyy </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- IZZ -->
<xs:element name="izz">
<xs:annotation>
<xs:documentation> Moment of Inertia, Izz </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- IXY -->
<xs:element name="ixy">
<xs:annotation>
<xs:documentation> Moment of Inertia, Ixy </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- IXZ -->
<xs:element name="ixz">
<xs:annotation>
<xs:documentation> Moment of Inertia, Ixz </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- IYZ -->
<xs:element name="iyz">
<xs:annotation>
<xs:documentation> Moment of Inertia, Iyz </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:decimal">
<xs:attribute name="unit" use="optional" default="SLUG*FT2" type="InertiaType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Empty Weight -->
<xs:element name="emptywt">
<xs:annotation>
<xs:documentation> Empty weight of vehicle. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="LBS" type="WeightType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<!-- Point Mass -->
<xs:element name="pointmass">
<xs:complexType>
<xs:sequence>
<xs:element ref="weight" />
<xs:element ref="location" />
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="weight">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="PositiveNumber">
<xs:attribute name="unit" use="optional" default="LBS" type="WeightType" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="location">
<xs:annotation>
<xs:documentation>A location is a vector, containing an x, Y, and Z, element. The default unit is inches (IN). The unit is specifed
in the unit attribute of the location - not in the individual x, y, or z child elements.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="x" />
<xs:element ref="y" />
<xs:element ref="z" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="unit" use="optional" default="IN">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="M" />
<xs:enumeration value="FT" />
<xs:enumeration value="IN" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="direction">
<xs:annotation>
<xs:documentation>A direction is a unit vector, containing an x, Y, and Z element which defines
a direction in a specified frame. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="x" />
<xs:element ref="y" />
<xs:element ref="z" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="unit" use="optional" default="IN">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="M" />
<xs:enumeration value="FT" />
<xs:enumeration value="IN" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="x" type="xs:double" />
<xs:element name="y" type="xs:double" />
<xs:element name="z" type="xs:double" />
<!-- Buoyant forces section -->
<xs:element name="buoyant_forces">
</xs:element>
<!-- 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 ref="property" />
<xs:element ref="sensor" />
<xs:element 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>
<!-- AUTOPILOT SECTION -->
<xs:element name="autopilot">
<xs:annotation>
<xs:documentation> The autopilot section is not required for many uses, including for use within Flightgear.
The autopilot functions can be specified within the autopilot section, or a file name can be given where the
autopilot is specified.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="property" />
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sensor" />
<xs:element minOccurs="0" maxOccurs="unbounded" ref="channel" />
</xs:sequence>
<xs:attribute name="file" type="xs:string" use="optional" />
<xs:attribute name="name" type="xs:string" use="optional" />
</xs:complexType>
</xs:element>
<!-- FLIGHT CONTROL SECTION -->
<!-- flight control types -->
<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" />
<xs:element name="max" type="xs:double" />
</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>
<!-- End flight control types -->
<xs:element name="flight_control">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="property" />
<xs:element minOccurs="0" maxOccurs="unbounded" ref="sensor" />
<xs:element minOccurs="0" maxOccurs="unbounded" ref="channel" />
</xs:sequence>
<xs:attribute name="file" type="xs:string" use="optional" />
<xs:attribute name="name" use="optional" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Channel -->
<xs:element name="channel">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<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: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" 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="1" />
</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" />
</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:all>
<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="1" type="xs:string" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Kinematic device -->
<xs:element name="kinematic">
<xs:complexType>
<xs:all>
<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="1" type="xs:string" />
</xs:all>
<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:all>
<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="1" type="xs:string" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Washout filter -->
<xs:element name="washout_filter">
<xs:complexType>
<xs:all>
<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="1" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Integrator -->
<xs:element name="integrator">
<xs:complexType>
<xs:all>
<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="1" />
<xs:element name="trigger" type="xs:string" minOccurs="0" maxOccurs="1" />
</xs:all>
<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" minOccurs="1" maxOccurs="1" />
<xs:element name="kp" type="xs:float" minOccurs="0"/>
<xs:element name="ki" type="xs:float" minOccurs="0"/>
<xs:element name="kd" type="xs:float" minOccurs="0"/>
<xs:element name="trigger" type="xs:string" minOccurs="0"/>
<xs:element ref="clipto" minOccurs="0" maxOccurs="1" />
<xs:element name="output" minOccurs="0" maxOccurs="1" type="xs:string" />
</xs:all>
<xs:attribute name="name" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<!-- Second order filter -->
<xs:element name="second_order_filter">
<xs:complexType>
<xs:all>
<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" />
<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="1" type="xs:string" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Pure gain -->
<xs:element name="pure_gain">
<xs:complexType>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element name="gain" type="xs:string" minOccurs="1" 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="1" type="xs:string" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- Scheduled gain -->
<xs:element name="scheduled_gain">
<xs:complexType>
<xs:all>
<xs:element name="description" type="xs:string" minOccurs="0"/>
<xs:element name="input" type="xs:string" minOccurs="1" maxOccurs="1" />
<xs:element ref="table" minOccurs="1" maxOccurs="1" />
<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" />
</xs:all>
<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" />
</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" maxOccurs="1"/>
</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" type="xs:float" minOccurs="0"/>
<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" 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:all>
<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" type="xs:string" />
</xs:all>
<xs:attribute name="name" use="required" type="xs:string" />
</xs:complexType>
</xs:element>
<!-- FCS function -->
<xs:element name="fcs_function">
<xs:complexType>
<xs:all>
<xs:element name="input" type="xs:string" minOccurs="0"/>
<xs:element ref="description" minOccurs="0"/>
<xs:element ref="function"/>
<xs:element ref="clipto" minOccurs="0"/>
<xs:element name="output" minOccurs="0" type="xs:string" />
</xs:all>
<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>