-
Notifications
You must be signed in to change notification settings - Fork 455
/
JSBSimSystem.xsd
766 lines (709 loc) · 31.1 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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="JSBSimCommon.xsd"/>
<!-- 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:sequence>
<xs:element name="description" minOccurs="0" maxOccurs="1"/>
<xs:choice maxOccurs="unbounded">
<xs:element name="property" type="property-with-value"/>
<xs:element ref="channel"/>
<xs:element ref="function"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" use="optional" type="xs:token"/>
<xs:attribute name="file" use="optional" type="xs:token"/>
</xs:complexType>
</xs:element>
<!-- Channel -->
<xs:element name="channel">
<xs:complexType>
<xs:sequence>
<xs:element name="description" minOccurs="0" maxOccurs="1" type="xs:string"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="accelerometer" type="sensor-with-location"/>
<xs:element ref="actuator"/>
<xs:element ref="aerosurface_scale"/>
<xs:element ref="angle"/>
<xs:element ref="deadband"/>
<xs:element ref="fcs_function"/>
<xs:element ref="gyro"/>
<xs:element ref="integrator"/>
<xs:element ref="kinematic"/>
<xs:element ref="lag_filter"/>
<xs:element ref="lead_lag_filter"/>
<xs:element name="magnetometer" type="sensor-with-location"/>
<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="waypoint_distance"/>
<xs:element ref="waypoint_heading"/>
</xs:choice>
</xs:sequence>
<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>
<!-- Sensors -->
<xs:simpleType name="axis">
<xs:restriction base="xs:token">
<xs:pattern value="[xX]|[yY]|[zZ]"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="orientation">
<xs:all>
<xs:element name="pitch" type="xs:decimal"/>
<xs:element name="roll" type="xs:decimal"/>
<xs:element name="yaw" type="xs:decimal"/>
</xs:all>
<xs:attribute name="unit" type="angleUnit"/>
</xs:complexType>
<xs:complexType name="sensor-with-location">
<xs:all>
<xs:element name="location" minOccurs="1">
<xs:complexType>
<xs:all>
<xs:element name="x" type="xs:decimal"/>
<xs:element name="y" type="xs:decimal"/>
<xs:element name="z" type="xs:decimal"/>
</xs:all>
<xs:attribute name="unit" type="distanceUnit"/>
</xs:complexType>
</xs:element>
<xs:element name="axis" type="axis" minOccurs="1"/>
<xs:element name="orientation" type="orientation" minOccurs="0"/>
<xs:element ref="quantization" minOccurs="0"/>
<xs:element name="bias" type="xs:float" minOccurs="0"/>
<xs:element name="gain" type="xs:float" minOccurs="0"/>
<xs:element name="drift_rate" type="xs:float" minOccurs="0"/>
<xs:element name="lag" type="xs:float" minOccurs="0"/>
<xs:element ref="noise" minOccurs="0"/>
<xs:element name="delay" type="xs:float" minOccurs="0"/>
<xs:element name="output" type="property-name"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
<!-- Gyro -->
<xs:element name="gyro">
<xs:complexType>
<xs:all>
<xs:element name="axis" type="axis"/>
<xs:element name="orientation" type="orientation"/>
<xs:element ref="quantization" minOccurs="0"/>
<xs:element name="bias" type="xs:float" minOccurs="0"/>
<xs:element name="gain" type="xs:float" minOccurs="0"/>
<xs:element name="drift_rate" type="xs:float" minOccurs="0"/>
<xs:element name="lag" type="xs:float" minOccurs="0"/>
<xs:element ref="noise" minOccurs="0"/>
<xs:element name="delay" type="xs:float" minOccurs="0"/>
<xs:element name="output" type="property-name"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
</xs:element>
<!-- Angle -->
<xs:element name="angle">
<xs:complexType>
<xs:all>
<xs:element name="source_angle" type="angleProperty"/>
<xs:element name="target_angle" type="angleProperty"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
<xs:attribute name="unit" type="angleUnit"/>
</xs:complexType>
</xs:element>
<!-- Lag filter -->
<xs:element name="lag_filter">
<xs:complexType>
<xs:all>
<xs:element name="description" minOccurs="0" type="xs:string"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="c1" type="xs:double"/>
<xs:element ref="clipto" minOccurs="0"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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="1" 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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<xs:element name="input" type="xs:string" minOccurs="0"/>
<xs:element ref="default" minOccurs="0"/>
<xs:element ref="test" minOccurs="0" 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:choice maxOccurs="unbounded">
<xs:element name="description" type="xs:string"/>
<xs:element name="input" type="xs:string"/>
<xs:element ref="quantization"/>
<xs:element name="bias" type="xs:float"/>
<xs:element name="gain" type="xs:float"/>
<xs:element name="drift_rate" type="xs:float"/>
<xs:element name="lag" type="xs:float"/>
<xs:element ref="noise"/>
<xs:element name="delay"/>
<xs:element ref="clipto"/>
<xs:element name="output"/>
</xs:choice>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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="1">
<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="1" 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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<xs:element name="input" type="xs:string"/>
<xs:element name="width" minOccurs="1"/>
<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" minOccurs="0" maxOccurs="1" type="xs:string"/>
<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="optional" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="waypoint_distance">
<xs:complexType>
<xs:complexContent>
<xs:extension base="waypoint_input">
<xs:attribute name="unit" type="distanceUnit"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="waypoint_heading">
<xs:complexType>
<xs:complexContent>
<xs:extension base="waypoint_input">
<xs:attribute name="unit" type="angleUnit"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:complexType name="waypoint_input">
<xs:all>
<xs:element name="target_latitude" minOccurs="1" type="angleProperty"/>
<xs:element name="target_longitude" minOccurs="1" type="angleProperty"/>
<xs:element name="source_latitude" minOccurs="1" type="angleProperty"/>
<xs:element name="source_longitude" minOccurs="1" type="angleProperty"/>
</xs:all>
<xs:attribute name="name" use="required" type="xs:string"/>
</xs:complexType>
<xs:complexType name="angleProperty">
<xs:simpleContent>
<xs:extension base="property-name">
<xs:attribute name="unit" type="angleUnit"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="angleUnit">
<xs:restriction base="xs:token">
<xs:enumeration value="DEG"/>
<xs:enumeration value="RAD"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="distanceUnit">
<xs:restriction base="xs:token">
<xs:enumeration value="FT"/>
<xs:enumeration value="IN"/>
<xs:enumeration value="KM"/>
<xs:enumeration value="M"/>
<xs:enumeration value="CM"/>
</xs:restriction>
</xs:simpleType>
<!--
<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:token">
<xs:enumeration value="PERCENT"/>
<xs:enumeration value="ABSOLUTE"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="distribution">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="UNIFORM"/>
<xs:enumeration value="GAUSSIAN"/>
</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" minOccurs="0" maxOccurs="1"/>
<xs:element name="max" 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>
<xs:simpleType name="PositiveNumber">
<xs:restriction base="xs:double">
<xs:minInclusive value="0"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>