Debian Codegraph @

Models/Geometry/Kuznetsov/Liaoning.xml

raw symbols SCIP
1 <?xml version="1.0" encoding="UTF-8"?>
2 <PropertyList>
3 <description>Liaoning</description>
4 <author>Daniel Overbeck, Richard Harrison, Uxman (3d)</author>
5 <!-- 3d model from: https://sketchfab.com/3d-models/kuznetsov-aircraft-carrier-460d73a91efb49298c86ee347fae397c -->
6 <status>early-production</status>
7 <path>Kuznetsov.ac</path>
8 <nasal>
9 <load>
10 <![CDATA[
11 var self = cmdarg();
12 print("Model load Liaoning ", self.getPath());
13 var pathc = self.getPath();
14
15 # register the dialog
16
17 setprop(pathc~"/dlg-name", "Liaoning");
18
19
20
21 ################
22 # jet blast deflectors
23 var jbd_transit_time = 5.0;
24 setprop("/controls/liaoning/jbd[0]/state", 0);
25 setprop("/controls/liaoning/jbd[1]/state", 0);
26 setprop("/controls/liaoning/jbd[2]/state", 0);
27
28 var jbd0 = aircraft.door.new(pathc~"/surface-positions/jbd[0]", jbd_transit_time, 0);
29 var jbd1 = aircraft.door.new(pathc~"/surface-positions/jbd[1]", jbd_transit_time, 0);
30 var jbd2 = aircraft.door.new(pathc~"/surface-positions/jbd[2]", jbd_transit_time, 0);
31
32 var jbd_array = [jbd0, jbd1, jbd2];
33 var jbd_operate = func (i) {
34 var tgt = getprop("/controls/liaoning/jbd["~i~"]/state");
35 if (tgt == 1) {
36 print ("JBD ", i+1, " up.");
37 jbd_array[i].open();
38 } else {
39 print ("JBD ", i+1, " down.");
40 jbd_array[i].close();
41 }
42 }
43 var l_jbd0 = setlistener("/controls/liaoning/jbd[0]/state", func {jbd_operate(0);},0,0);
44 var l_jbd1 = setlistener("/controls/liaoning/jbd[1]/state", func {jbd_operate(1);},0,0);
45 var l_jbd2 = setlistener("/controls/liaoning/jbd[2]/state", func {jbd_operate(2);},0,0);
46
47
48 setprop("/controls/liaoning/turn-to-launch-hdg", 0);
49 setprop("/controls/liaoning/turn-to-recovery-hdg", 0);
50 setprop("/controls/liaoning/turn-to-base-course", 1);
51 ]]>
52 </load>
53 <unload>
54 <![CDATA[
55 # clean up listeners
56 removelistener(l_jbd0);
57 removelistener(l_jbd1);
58 removelistener(l_jbd2);
59 ]]>
60 </unload>
61 </nasal>
62 <model>
63 <name>flols</name>
64 <path>Models/Geometry/Nimitz/Models/flols.xml</path>
65 <offsets>
66 <x-m>65</x-m>
67 <y-m>-37</y-m>
68 <z-m>17</z-m>
69 <heading-deg>20</heading-deg>
70 </offsets>
71 </model>
72 <animation>
73 <type>range</type>
74 <min-m>0</min-m>
75 <max-m>30000</max-m>
76 </animation>
77 <animation>
78 <type>rotate</type>
79 <object-name>Radar</object-name>
80 <property>/sim/time/elapsed-sec</property>
81 <factor>35</factor>
82 <center>
83 <x-m>81.8</x-m>
84 <y-m>25.1</y-m>
85 </center>
86 <axis>
87 <z>1</z>
88 </axis>
89 </animation>
90 <animation>
91 <type>rotate</type>
92 <object-name>JetBlastDeflector-1</object-name>
93 <property>surface-positions/jbd[0]/position-norm</property>
94 <interpolation>
95 <entry><ind>0.0000</ind><dep>0</dep></entry>
96 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
97 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
98 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
99 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
100 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
101 <entry><ind>0.5000</ind><dep>45</dep></entry>
102 <entry><ind>0.5833</ind><dep>49</dep></entry>
103 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
104 <entry><ind>0.7500</ind><dep>54</dep></entry>
105 <entry><ind>0.8333</ind><dep>55</dep></entry>
106 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
107 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
108 </interpolation>
109 <center>
110 <x-m>15.8</x-m>
111 <y-m>0</y-m>
112 <z-m>15.17</z-m>
113 </center>
114 <axis>
115 <y>-1</y>
116 </axis>
117 </animation>
118 <animation>
119 <type>rotate</type>
120 <object-name>JetBlastDeflector-2</object-name>
121 <property>surface-positions/jbd[1]/position-norm</property>
122 <interpolation>
123 <entry><ind>0.0000</ind><dep>0</dep></entry>
124 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
125 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
126 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
127 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
128 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
129 <entry><ind>0.5000</ind><dep>45</dep></entry>
130 <entry><ind>0.5833</ind><dep>49</dep></entry>
131 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
132 <entry><ind>0.7500</ind><dep>54</dep></entry>
133 <entry><ind>0.8333</ind><dep>55</dep></entry>
134 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
135 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
136 </interpolation>
137 <center>
138 <x-m>15.8</x-m>
139 <y-m>0</y-m>
140 <z-m>15.17</z-m>
141 </center>
142 <axis>
143 <y>-1</y>
144 </axis>
145 </animation>
146 <animation>
147 <type>rotate</type>
148 <object-name>JetBlastDeflector-3</object-name>
149 <property>surface-positions/jbd[2]/position-norm</property>
150 <interpolation>
151 <entry><ind>0.0000</ind><dep>0</dep></entry>
152 <entry><ind>0.0833</ind><dep>12.2</dep></entry>
153 <entry><ind>0.1666</ind><dep>20.4</dep></entry>
154 <entry><ind>0.2500</ind><dep>28.2</dep></entry>
155 <entry><ind>0.3333</ind><dep>34.6</dep></entry>
156 <entry><ind>0.4166</ind><dep>40.6</dep></entry>
157 <entry><ind>0.5000</ind><dep>45</dep></entry>
158 <entry><ind>0.5833</ind><dep>49</dep></entry>
159 <entry><ind>0.6666</ind><dep>51.6</dep></entry>
160 <entry><ind>0.7500</ind><dep>54</dep></entry>
161 <entry><ind>0.8333</ind><dep>55</dep></entry>
162 <entry><ind>0.9166</ind><dep>56.2</dep></entry>
163 <entry><ind>1.0000</ind><dep>56.2</dep></entry>
164 </interpolation>
165 <center>
166 <x-m>107.9</x-m>
167 <y-m>0</y-m>
168 <z-m>15.17</z-m>
169 </center>
170 <axis>
171 <y>-1</y>
172 </axis>
173 </animation>
174 <animation>
175 <type>pick</type>
176 <object-name>JetBlastDeflector-1</object-name>
177 <action>
178 <button>0</button>
179 <repeatable>false</repeatable>
180 <binding>
181 <command>property-toggle</command>
182 <property>/controls/liaoning/jbd[0]/state</property>
183 </binding>
184 </action>
185 </animation>
186 <animation>
187 <type>pick</type>
188 <object-name>JetBlastDeflector-2</object-name>
189 <action>
190 <button>0</button>
191 <repeatable>false</repeatable>
192 <binding>
193 <command>property-toggle</command>
194 <property>/controls/liaoning/jbd[1]/state</property>
195 </binding>
196 </action>
197 </animation>
198 <animation>
199 <type>pick</type>
200 <object-name>JetBlastDeflector-3</object-name>
201 <action>
202 <button>0</button>
203 <repeatable>false</repeatable>
204 <binding>
205 <command>property-toggle</command>
206 <property>/controls/liaoning/jbd[2]/state</property>
207 </binding>
208 </action>
209 </animation>
210 <animation>
211 <type>interaction</type>
212 <object-name>wire-1</object-name>
213 <object-name>wire-2</object-name>
214 <object-name>wire-3</object-name>
215 <object-name>wire-4</object-name>
216 <interaction-type>carrier-wire</interaction-type>
217 </animation>
218 <animation>
219 <type>rotate</type>
220 <object-name>Bow-Wave</object-name>
221 <object-name>Stern-Wake</object-name>
222 <object-name>Wake</object-name>
223 <property>orientation/roll-deg</property>
224 <factor>1</factor>
225 <center><y-m>0.00</y-m><z-m>0.0473</z-m></center>
226 <axis><x>1</x></axis>
227 </animation>
228 <animation>
229 <type>rotate</type>
230 <object-name>Wake</object-name>
231 <property>surface-positions/rudder-pos-deg</property>
232 <factor>-0.334</factor>
233 <x-m>-88.6176</x-m>
234 <y-m>0.00</y-m>
235 <axis><z>-1</z></axis>
236 <enable-hot type="bool">false</enable-hot>
237 </animation>
238 <animation>
239 <type>noshadow</type>
240 <object-name>wire-1</object-name>
241 <object-name>wire-2</object-name>
242 <object-name>wire-3</object-name>
243 <object-name>wire-4</object-name>
244 <object-name>Wake</object-name>
245 </animation>
246 </PropertyList>