Debian Codegraph @

Models/Geometry/Clemenceau/Clemenceau.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2
3
4 <!--
5 Copyright License: GPL
6 Usable with FlightGear
7 Property of Gerard Robin
8 but the Fresnel Lens Optical Landing System which is copied from the Nimitz Model
9 by Vivian Meazza
10 -->
11
12
13 <PropertyList>
14
15 <path>clem-superstructure.ac</path>
16
17 <nasal>
18 <load>
19 <![CDATA[
20 var self = cmdarg();
21
22 print("Model load Clemenceau ", self.getPath());
23 var pathc = self.getPath();
24
25 # timescales
26
27 var elevator_transit_time = 30.0;
28 var jbd_transit_time = 5.0;
29
30 # register the dialog
31
32 setprop(pathc~"/dlg-name", "Clemenceau");
33
34 # init course control, animation and detail properties
35
36 setprop("/controls/clemenceau/lights", 0);
37
38 setprop("/controls/clemenceau/turn-to-launch-hdg", 0);
39 setprop("/controls/clemenceau/turn-to-recovery-hdg", 0);
40 setprop("/controls/clemenceau/turn-to-base-course", 1);
41
42
43 ################
44 # elevators
45
46 setprop("/controls/clemenceau/elevator[0]/state",1);
47 setprop("/controls/clemenceau/elevator[1]/state",0);
48
49 var elevator1 = aircraft.door.new(pathc~"/surface-positions/elevator[0]", elevator_transit_time, 1);
50 var elevator2 = aircraft.door.new(pathc~"/surface-positions/elevator[1]", elevator_transit_time, 0);
51
52
53 var elevator_array = [elevator1, elevator2];
54
55 ################
56 # jet blast deflectors
57
58 setprop("/controls/clemenceau/jbd[0]/state", 0);
59 setprop("/controls/clemenceau/jbd[1]/state", 0);
60
61
62 var jbd1 = aircraft.door.new(pathc~"/surface-positions/jbd[0]", jbd_transit_time, 0);
63 var jbd2 = aircraft.door.new(pathc~"/surface-positions/jbd[1]", jbd_transit_time, 0);
64
65
66 var jbd_array = [jbd1, jbd2];
67
68
69 # elevator control
70
71 var elevator_operate = func (i){
72
73 var tgt = getprop("/controls/clemenceau/elevator["~i~"]/state");
74 if (tgt == 1)
75 {
76 print ("Elevator ", i+1, " up.");
77 elevator_array[i].open();
78
79 }
80 else
81 {
82 print ("Elevator ", i+1, " down.");
83 elevator_array[i].close();
84 }
85 }
86
87 # JBD control
88
89 var jbd_operate = func (i) {
90
91 var tgt = getprop("/controls/clemenceau/jbd["~i~"]/state");
92 if (tgt == 1)
93 {
94 print ("JBD ", i+1, " up.");
95 jbd_array[i].open();
96 }
97 else
98 {
99 print ("JBD ", i+1, " down.");
100 jbd_array[i].close();
101 }
102
103 }
104
105
106 # add AN/SPN-46 see http://chateau-logic.com/content/emesary-nasal-implementation-flightgear
107
108
109 fn_an_spn_46 = getprop("/sim/fg-root") ~ "/Aircraft/Generic/an_spn_46.nas";
110 io.load_nasal(fn_an_spn_46, "an_spn_46");
111 var anspn = an_spn_46.ANSPN46_System.new("Clemenceau", self);
112 anspn.SetChannel(2);
113 var an_spn_46_timer = maketimer(6, func {
114 anspn.Update();
115 an_spn_46_timer.restart(anspn.GetUpdateRate());
116 });
117 an_spn_46_timer.restart(6);
118
119
120 # listeners
121
122 var l_elev1 = setlistener("/controls/clemenceau/elevator/state", func {elevator_operate(0);},0,0);
123 var l_elev2 = setlistener("/controls/clemenceau/elevator[1]/state", func {elevator_operate(1);},0,0);
124
125 var l_jbd1 = setlistener("/controls/clemenceau/jbd[0]/state", func {jbd_operate(0);},0,0);
126 var l_jbd2 = setlistener("/controls/clemenceau/jbd[1]/state", func {jbd_operate(1);},0,0);
127
128 ]]>
129 </load>
130
131 <unload>
132 <![CDATA[
133 an_spn_46_timer.stop();
134
135 # clean up listeners
136
137 removelistener(l_elev1);
138 removelistener(l_elev2);
139
140 removelistener(l_jbd1);
141 removelistener(l_jbd2);
142 ]]>
143 </unload>
144 </nasal>
145
146 <texture-path>Textures</texture-path>
147 <offsets>
148 <z-m>0</z-m>
149 </offsets>
150
151
152
153 <model>
154 <name>Wakes</name>
155 <path>Models/Geometry/Clemenceau/Models/Sillage.xml</path>
156 <offsets>
157 <x-m>0</x-m>
158 <y-m>0</y-m>
159 <z-m>0</z-m>
160 <heading-deg>0</heading-deg>
161 </offsets>
162 </model>
163 <model>
164 <object-name>Pont</object-name>
165 <path>Models/Geometry/Clemenceau/Pont.xml</path>
166 <offsets>
167 <x-m>0</x-m>
168 <y-m>0</y-m>
169 <z-m>0</z-m>
170 </offsets>
171 </model>
172 <model>
173 <object-name>Clock</object-name>
174 <path>Models/Geometry/Clemenceau/Clock.xml</path>
175 <offsets>
176 <x-m>-11.7275</x-m>
177 <y-m>10.6162</y-m>
178 <z-m>19.9938</z-m>
179 <heading-deg>45</heading-deg>
180 </offsets>
181 </model>
182 <model>
183 <name>Hull</name>
184 <path>Models/Geometry/Clemenceau/Hull.xml</path>
185 <offsets>
186 <x-m>0</x-m>
187 <y-m>0</y-m>
188 <z-m>0</z-m>
189 </offsets>
190 </model>
191 <model>
192 <name>Flols</name>
193 <path>Models/Geometry/Clemenceau/Models/flols.xml</path>
194 <offsets>
195 <x-m>25.9119</x-m>
196 <y-m>-29.5</y-m>
197 <z-m>14.7</z-m>
198 <heading-deg>8</heading-deg>
199 </offsets>
200 </model>
201 <!--<model>
202 <name>Glide-path</name>
203 <path>Models/Geometry/Clemenceau/Models/glide-path.xml</path>
204 <offsets>
205 <x-m>4902.52</x-m>
206 <y-m>700.906</y-m>
207 <z-m>137.228</z-m>
208 <heading-deg>0</heading-deg>
209 </offsets>
210 </model>-->
211
212 <!--<model>
213 <path>Models/Geometry/Clemenceau/Models/Aircrafts/Alouette-III/Pedro.xml</path>
214 <offsets>
215 <x-m>-75.5149</x-m>
216 <y-m>9.29045</y-m>
217 <z-m>16.3118</z-m>
218 <heading-deg>0</heading-deg>
219 </offsets>
220 </model>-->
221 <model>
222 <path>Models/Geometry/Clemenceau/Tracteur.xml</path>
223 <offsets>
224 <x-m>-34.9154</x-m>
225 <y-m>9.92806</y-m>
226 <z-m>14.8311</z-m>
227 <heading-deg>180</heading-deg>
228 </offsets>
229 </model>
230 <model>
231 <path>Models/Geometry/Clemenceau/Tracteur.xml</path>
232 <offsets>
233 <x-m>-38.3693</x-m>
234 <y-m>9.92806</y-m>
235 <z-m>14.8311</z-m>
236 <heading-deg>0</heading-deg>
237 </offsets>
238 </model>
239 <model>
240 <path>Models/Geometry/Clemenceau/Tracteur.xml</path>
241 <offsets>
242 <x-m>-32.343</x-m>
243 <y-m>9.92806</y-m>
244 <z-m>14.8311</z-m>
245 <heading-deg>180</heading-deg>
246 </offsets>
247 </model>
248 <model>
249 <path>Models/Geometry/Clemenceau/Tracteur.xml</path>
250 <offsets>
251 <x-m>-27.2995</x-m>
252 <y-m>9.92806</y-m>
253 <z-m>14.8311</z-m>
254 <heading-deg>180</heading-deg>
255 </offsets>
256 </model>
257 <model>
258 <path>Models/Geometry/Clemenceau/Tracteur.xml</path>
259 <offsets>
260 <x-m>-48.6205</x-m>
261 <y-m>17.8154</y-m>
262 <z-m>14.8311</z-m>
263 <heading-deg>90</heading-deg>
264 </offsets>
265 </model>
266 <model>
267 <path>Models/Geometry/Clemenceau/Grue_pont.xml</path>
268 <offsets>
269 <x-m>-53.805</x-m>
270 <y-m>17.6369</y-m>
271 <z-m>16.4886</z-m>
272 <heading-deg>-45</heading-deg>
273 </offsets>
274 </model>
275
276
277
278 <!-- <animation>
279 <type>select</type>
280 <object-name>Glide-path</object-name>
281 <condition>
282 <equals>
283 <property>/ai/models/carrier[0]/controls/glide-path</property>
284 <value>true</value>
285 </equals>
286 </condition>
287 </animation>-->
288
289
290 <animation>
291 <condition>
292 <and>
293 <equals>
294 <property>/sim/model/carrier-jsbsim</property>
295 <value>1</value>
296 </equals>
297 <equals>
298 <property>/sim/carrier/name</property>
299 <value>Clemenceau</value>
300 </equals>
301 </and>
302 </condition>
303 <type>rotate</type>
304 <object-name>JBD-1</object-name>
305 <property>surface-positions/jbd[0]/position-norm</property>
306 <factor>70</factor>
307 <axis>
308 <x1-m>-61.8038</x1-m>
309 <y1-m>-4.90918</y1-m>
310 <z1-m>14.2877</z1-m>
311 <x2-m>-59.6654</x2-m>
312 <y2-m>-8.61296</y2-m>
313 <z2-m>14.2877</z2-m>
314 </axis>
315 </animation>
316 <animation>
317 <condition>
318 <not-equals>
319 <property>/sim/model/carrier-jsbsim</property>
320 <value>1</value>
321 </not-equals>
322 </condition>
323 <type>rotate</type>
324 <object-name>JBD-1</object-name>
325 <property>surface-positions/jbd[0]/position-norm</property>
326 <factor>70</factor>
327 <axis>
328 <x1-m>-61.8038</x1-m>
329 <y1-m>-4.90918</y1-m>
330 <z1-m>14.2877</z1-m>
331 <x2-m>-59.6654</x2-m>
332 <y2-m>-8.61296</y2-m>
333 <z2-m>14.2877</z2-m>
334 </axis>
335 </animation>
336 <animation>
337 <condition>
338 <and>
339 <equals>
340 <property>/sim/model/carrier-jsbsim</property>
341 <value>1</value>
342 </equals>
343 <equals>
344 <property>/sim/carrier/name</property>
345 <value>Clemenceau</value>
346 </equals>
347 </and>
348 </condition>
349 <type>rotate</type>
350 <object-name>JBD-2</object-name>
351 <property>surface-positions/jbd[1]/position-norm</property>
352 <factor>70</factor>
353 <axis>
354 <x1-m>37.4696</x1-m>
355 <y1-m>-15.5491</y1-m>
356 <z1-m>14.2803</z1-m>
357 <x2-m>39.8606</x2-m>
358 <y2-m>-19.0947</y2-m>
359 <z2-m>14.2803</z2-m>
360 </axis>
361 </animation>
362 <animation>
363 <condition>
364 <not-equals>
365 <property>/sim/model/carrier-jsbsim</property>
366 <value>1</value>
367 </not-equals>
368 </condition>
369 <type>rotate</type>
370 <object-name>JBD-2</object-name>
371 <property>surface-positions/jbd[1]/position-norm</property>
372 <factor>70</factor>
373 <axis>
374 <x1-m>37.4696</x1-m>
375 <y1-m>-15.5491</y1-m>
376 <z1-m>14.2803</z1-m>
377 <x2-m>39.8606</x2-m>
378 <y2-m>-19.0947</y2-m>
379 <z2-m>14.2803</z2-m>
380 </axis>
381 </animation>
382 <animation>
383 <type>translate</type>
384 <object-name>Ascenseur1</object-name>
385 <object-name>Ascenseur1-Marquage</object-name>
386 <property>surface-positions/elevator[0]/position-norm</property>
387 <factor>9.20</factor>
388 <offset-m>-9.20</offset-m>
389 <axis>
390 <x>0</x>
391 <y>0</y>
392 <z>1</z>
393 </axis>
394 </animation>
395 <animation>
396 <type>translate</type>
397 <object-name>Ascenseur2</object-name>
398 <object-name>Ascenseur2-Marquage</object-name>
399 <property>surface-positions/elevator[1]/position-norm</property>
400 <factor>9.20</factor>
401 <axis>
402 <x>0</x>
403 <y>0</y>
404 <z>1</z>
405 </axis>
406 </animation>
407 <animation>
408 <type>rotate</type>
409 <object-name>Radar-DRBI-10-avant</object-name>
410 <property>/sim/time/elapsed-sec</property>
411 <factor>40</factor>
412 <center>
413 <x-m>-32.3538</x-m>
414 <y-m>15.4584</y-m>
415 <z-m>0</z-m>
416 </center>
417 <axis>
418 <x>0</x>
419 <y>0</y>
420 <z>1</z>
421 </axis>
422 </animation>
423 <animation>
424 <type>rotate</type>
425 <object-name>Radar-DRBI-10-arriere</object-name>
426 <property>/sim/time/elapsed-sec</property>
427 <factor>40</factor>
428 <center>
429 <x-m>-5.0133</x-m>
430 <y-m>15.4584</y-m>
431 <z-m>0</z-m>
432 </center>
433 <axis>
434 <x>0</x>
435 <y>0</y>
436 <z>1</z>
437 </axis>
438 </animation>
439 <animation>
440 <type>rotate</type>
441 <object-name>Radar-DRBV23</object-name>
442 <property>/sim/time/elapsed-sec</property>
443 <factor>40</factor>
444 <center>
445 <x-m>-31.7287</x-m>
446 <y-m>15.4584</y-m>
447 <z-m>0</z-m>
448 </center>
449 <axis>
450 <x>0</x>
451 <y>0</y>
452 <z>1</z>
453 </axis>
454 </animation>
455 <animation>
456 <type>rotate</type>
457 <object-name>Radar-DRBV20</object-name>
458 <property>/sim/time/elapsed-sec</property>
459 <factor>40</factor>
460 <center>
461 <x-m>-19.589</x-m>
462 <y-m>15.4584</y-m>
463 <z-m>0</z-m>
464 </center>
465 <axis>
466 <x>0</x>
467 <y>0</y>
468 <z>1</z>
469 </axis>
470 </animation>
471 <animation>
472 <type>range</type>
473 <object-name>Ba-Canon1</object-name>
474 <max-m>5000</max-m>
475 </animation>
476 <animation>
477 <type>range</type>
478 <object-name>Ba-Canon2</object-name>
479 <max-m>5000</max-m>
480 </animation>
481 <animation>
482 <type>range</type>
483 <object-name>Tri-Canon1</object-name>
484 <max-m>5000</max-m>
485 </animation>
486 <animation>
487 <type>range</type>
488 <object-name>Tri-Canon2</object-name>
489 <max-m>5000</max-m>
490 </animation>
491 <animation>
492 <type>range</type>
493 <object-name>Grue</object-name>
494 <max-m>5000</max-m>
495 </animation>
496 <animation>
497 <type>range</type>
498 <object-name>Tux</object-name>
499 <max-m>200</max-m>
500 </animation>
501 <animation>
502 <type>range</type>
503 <object-name>JBD-2</object-name>
504 <max-m>5000</max-m>
505 </animation>
506 <animation>
507 <type>range</type>
508 <object-name>JBD-1</object-name>
509 <max-m>5000</max-m>
510 </animation>
511 <animation>
512 <type>range</type>
513 <object-name>Sous-pont</object-name>
514 <max-m>2000</max-m>
515 </animation>
516
517 <!--<animation>
518 <type>range</type>
519 <object-name></object-name>
520 <max-m></max-m>
521 </animation>-->
522
523 <animation>
524 <type>interaction</type>
525 <object-name>cat-1</object-name>
526 <object-name>cat-2</object-name>
527 <interaction-type>carrier-catapult</interaction-type>
528 </animation>
529 <animation>
530 <type>interaction</type>
531 <object-name>brin-1</object-name>
532 <object-name>brin-2</object-name>
533 <object-name>brin-3</object-name>
534 <object-name>brin-4</object-name>
535 <interaction-type>carrier-wire</interaction-type>
536 </animation>
537
538 <!-- elevators -->
539
540 <animation>
541 <type>pick</type>
542 <object-name>Ascenseur1</object-name>
543 <action>
544 <button>0</button>
545 <repeatable>false</repeatable>
546 <binding>
547 <command>property-toggle</command>
548 <property>/controls/clemenceau/elevator/state</property>
549 </binding>
550 </action>
551 <hovered>
552 <binding>
553 <command>set-tooltip</command>
554 <tooltip-id>elev1</tooltip-id>
555 <label>move elevator 1</label>
556 </binding>
557 </hovered>
558 </animation>
559
560 <animation>
561 <type>pick</type>
562 <object-name>Ascenseur2</object-name>
563 <action>
564 <button>0</button>
565 <repeatable>false</repeatable>
566 <binding>
567 <command>property-toggle</command>
568 <property>/controls/clemenceau/elevator[1]/state</property>
569 </binding>
570 </action>
571 <hovered>
572 <binding>
573 <command>set-tooltip</command>
574 <tooltip-id>elev2</tooltip-id>
575 <label>move elevator 2</label>
576 </binding>
577 </hovered>
578 </animation>
579
580
581 <!-- jet blast deflectors -->
582
583 <animation>
584 <type>pick</type>
585 <object-name>JBD-1</object-name>
586
587 <action>
588 <button>0</button>
589 <repeatable>false</repeatable>
590 <binding>
591 <command>property-toggle</command>
592 <property>/controls/clemenceau/jbd[0]/state</property>
593 </binding>
594 </action>
595 <hovered>
596 <binding>
597 <command>set-tooltip</command>
598 <tooltip-id>jbd1</tooltip-id>
599 <label>operate JBD1</label>
600 </binding>
601 </hovered>
602 </animation>
603
604 <animation>
605 <type>pick</type>
606 <object-name>JBD-2</object-name>
607
608 <action>
609 <button>0</button>
610 <repeatable>false</repeatable>
611 <binding>
612 <command>property-toggle</command>
613 <property>/controls/clemenceau/jbd[1]/state</property>
614 </binding>
615 </action>
616 <hovered>
617 <binding>
618 <command>set-tooltip</command>
619 <tooltip-id>jbd2</tooltip-id>
620 <label>operate JBD2</label>
621 </binding>
622 </hovered>
623 </animation>
624
625 <animation>
626 <type>pick</type>
627 <object-name>Island</object-name>
628 <action>
629 <button>0</button>
630 <repeatable>false</repeatable>
631 <binding>
632 <command>dialog-show</command>
633 <dialog-name>Clemenceau</dialog-name>
634 <property></property>
635 </binding>
636 </action>
637 <hovered>
638 <binding>
639 <command>set-tooltip</command>
640 <tooltip-id>bridge</tooltip-id>
641 <label>show Clemenceau control dialog</label>
642 </binding>
643 </hovered>
644 </animation>
645
646 </PropertyList>