| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<PropertyList> |
| 4 |
|
| 5 |
<path>hi.ac</path> |
| 6 |
|
| 7 |
<animation> |
| 8 |
<type>rotate</type> |
| 9 |
<object-name>Face</object-name> |
| 10 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 11 |
<factor>-1</factor> |
| 12 |
<axis> |
| 13 |
<x>-1</x> |
| 14 |
<y>0</y> |
| 15 |
<z>0</z> |
| 16 |
</axis> |
| 17 |
<center> |
| 18 |
<x-m>-0.37551</x-m> |
| 19 |
<y-m>-0.22153</y-m> |
| 20 |
<z-m>-0.00436</z-m> |
| 21 |
</center> |
| 22 |
</animation> |
| 23 |
|
| 24 |
<animation> |
| 25 |
<type>rotate</type> |
| 26 |
<object-name>HdgBug</object-name> |
| 27 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 28 |
<factor>-1</factor> |
| 29 |
<axis> |
| 30 |
<x>-1</x> |
| 31 |
<y>0</y> |
| 32 |
<z>0</z> |
| 33 |
</axis> |
| 34 |
<center> |
| 35 |
<x-m>-0.37551</x-m> |
| 36 |
<y-m>-0.22153</y-m> |
| 37 |
<z-m>-0.00436</z-m> |
| 38 |
</center> |
| 39 |
</animation> |
| 40 |
|
| 41 |
<animation> |
| 42 |
<type>rotate</type> |
| 43 |
<object-name>HdgBug</object-name> |
| 44 |
<property>autopilot/settings/heading-bug-deg</property> |
| 45 |
<axis> |
| 46 |
<x>-1</x> |
| 47 |
<y>0</y> |
| 48 |
<z>0</z> |
| 49 |
</axis> |
| 50 |
<center> |
| 51 |
<x-m>-0.37551</x-m> |
| 52 |
<y-m>-0.22153</y-m> |
| 53 |
<z-m>-0.00436</z-m> |
| 54 |
</center> |
| 55 |
</animation> |
| 56 |
|
| 57 |
|
| 58 |
<animation> |
| 59 |
<type>knob</type> |
| 60 |
<object-name>Hdg-Knob</object-name> |
| 61 |
<property>autopilot/settings/heading-bug-deg</property> |
| 62 |
<factor>12</factor> |
| 63 |
<axis> |
| 64 |
<x>-1</x> |
| 65 |
<y>0</y> |
| 66 |
<z>0</z> |
| 67 |
</axis> |
| 68 |
<center> |
| 69 |
<x-m>-0.36799</x-m> |
| 70 |
<y-m>-0.19238</y-m> |
| 71 |
<z-m>-0.03331</z-m> |
| 72 |
</center> |
| 73 |
<action> |
| 74 |
<binding> |
| 75 |
<command>property-adjust</command> |
| 76 |
<property>autopilot/settings/heading-bug-deg</property> |
| 77 |
<factor>1</factor> |
| 78 |
<min>0</min> |
| 79 |
<max>360</max> |
| 80 |
<wrap>1</wrap> |
| 81 |
</binding> |
| 82 |
</action> |
| 83 |
|
| 84 |
<drag-scale-px>4</drag-scale-px> |
| 85 |
<shift-repeat type="int">5</shift-repeat> |
| 86 |
<hovered> |
| 87 |
<binding> |
| 88 |
<command>set-tooltip</command> |
| 89 |
<tooltip-id>heading-bug</tooltip-id> |
| 90 |
<mapping>heading</mapping> |
| 91 |
<label>Heading Bug: %3.0f</label> |
| 92 |
<property>autopilot/settings/heading-bug-deg</property> |
| 93 |
</binding> |
| 94 |
</hovered> |
| 95 |
</animation> |
| 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 |
<animation> |
| 136 |
<type>translate</type> |
| 137 |
<object-name>OBS-Knob</object-name> |
| 138 |
<property>instrumentation/heading-indicator/caged-flag</property> |
| 139 |
<factor>0.004</factor> |
| 140 |
<axis> |
| 141 |
<x>-1.0</x> |
| 142 |
<y>0.0</y> |
| 143 |
<z>0.0</z> |
| 144 |
</axis> |
| 145 |
</animation> |
| 146 |
<animation> |
| 147 |
<type>knob</type> |
| 148 |
<object-name>OBS-Knob</object-name> |
| 149 |
<property>instrumentation/heading-indicator/align-deg</property> |
| 150 |
<factor>12</factor> |
| 151 |
<axis> |
| 152 |
<x>-1</x> |
| 153 |
<y>0</y> |
| 154 |
<z>0</z> |
| 155 |
</axis> |
| 156 |
<center> |
| 157 |
<x-m>-0.36799</x-m> |
| 158 |
<y-m>-0.25151</y-m> |
| 159 |
<z-m>-0.03297</z-m> |
| 160 |
</center> |
| 161 |
<action> |
| 162 |
<binding> |
| 163 |
<command>property-adjust</command> |
| 164 |
<property>instrumentation/heading-indicator/align-deg</property> |
| 165 |
<factor>1</factor> |
| 166 |
<min>0</min> |
| 167 |
<max>360</max> |
| 168 |
<wrap>1</wrap> |
| 169 |
</binding> |
| 170 |
<binding> |
| 171 |
<command>nasal</command> |
| 172 |
<script><![CDATA[ |
| 173 |
# Cage gyro when moving |
| 174 |
var oldSetting = getprop("instrumentation/heading-indicator/caged-flag"); |
| 175 |
if (!oldSetting) { |
| 176 |
setprop("instrumentation/heading-indicator/caged-flag", 1); |
| 177 |
|
| 178 |
var rotateAction = maketimer(1.0, func { |
| 179 |
setprop("instrumentation/heading-indicator/caged-flag", 0); |
| 180 |
}); |
| 181 |
rotateAction.singleShot = 1; |
| 182 |
rotateAction.start(); |
| 183 |
} |
| 184 |
]]></script> |
| 185 |
</binding> |
| 186 |
<binding> |
| 187 |
<command>nasal</command> |
| 188 |
<script>c172p.click("heading-offset-dial")</script> |
| 189 |
</binding> |
| 190 |
</action> |
| 191 |
<shift-action> |
| 192 |
<binding> |
| 193 |
<condition> |
| 194 |
<greater-than> |
| 195 |
<property>/sim/time/elapsed-sec</property> |
| 196 |
<expression> |
| 197 |
<sum> |
| 198 |
<property>/instrumentation/heading-indicator/obs_last-shift-click</property> |
| 199 |
<value>1</value> |
| 200 |
</sum> |
| 201 |
</expression> |
| 202 |
</greater-than> |
| 203 |
</condition> |
| 204 |
<command>property-toggle</command> |
| 205 |
<property>instrumentation/heading-indicator/caged-flag</property> |
| 206 |
</binding> |
| 207 |
|
| 208 |
<binding> |
| 209 |
<condition> |
| 210 |
<less-than-equals> |
| 211 |
<property>/sim/time/elapsed-sec</property> |
| 212 |
<expression> |
| 213 |
<sum> |
| 214 |
<property>/instrumentation/heading-indicator/obs_last-shift-click</property> |
| 215 |
<value>1</value> |
| 216 |
</sum> |
| 217 |
</expression> |
| 218 |
</less-than-equals> |
| 219 |
</condition> |
| 220 |
<command>property-adjust</command> |
| 221 |
<property>instrumentation/heading-indicator/align-deg</property> |
| 222 |
<factor>5</factor> |
| 223 |
<min>0</min> |
| 224 |
<max>360</max> |
| 225 |
<wrap>1</wrap> |
| 226 |
</binding> |
| 227 |
<binding> |
| 228 |
<condition> |
| 229 |
<less-than-equals> |
| 230 |
<property>/sim/time/elapsed-sec</property> |
| 231 |
<expression> |
| 232 |
<sum> |
| 233 |
<property>/instrumentation/heading-indicator/obs_last-shift-click</property> |
| 234 |
<value>1</value> |
| 235 |
</sum> |
| 236 |
</expression> |
| 237 |
</less-than-equals> |
| 238 |
</condition> |
| 239 |
<command>nasal</command> |
| 240 |
<script><![CDATA[ |
| 241 |
# Cage gyro when moving, uncage afterwards |
| 242 |
setprop("instrumentation/heading-indicator/caged-flag", 1); |
| 243 |
|
| 244 |
var rotateAction = maketimer(1.0, func { |
| 245 |
setprop("instrumentation/heading-indicator/caged-flag", 0); |
| 246 |
}); |
| 247 |
rotateAction.singleShot = 1; |
| 248 |
rotateAction.start(); |
| 249 |
]]></script> |
| 250 |
</binding> |
| 251 |
<binding> |
| 252 |
<command>property-assign</command> |
| 253 |
<property>/instrumentation/heading-indicator/obs_last-shift-click</property> |
| 254 |
<property>/sim/time/elapsed-sec</property> |
| 255 |
</binding> |
| 256 |
<binding> |
| 257 |
<command>nasal</command> |
| 258 |
<script>c172p.click("heading-offset-dial")</script> |
| 259 |
</binding> |
| 260 |
</shift-action> |
| 261 |
|
| 262 |
|
| 263 |
<drag-scale-px>4</drag-scale-px> |
| 264 |
|
| 265 |
<hovered> |
| 266 |
<binding> |
| 267 |
<command>set-tooltip</command> |
| 268 |
<tooltip-id>heading-offset</tooltip-id> |
| 269 |
<label>%s</label> |
| 270 |
<property>/instrumentation/heading-indicator/indicated-heading-deg</property> |
| 271 |
<mapping>nasal</mapping> |
| 272 |
<script> |
| 273 |
var heading = getprop("instrumentation/heading-indicator/indicated-heading-deg"); |
| 274 |
var returnString = "Heading: " ~ sprintf("%3.0f", heading); |
| 275 |
if (getprop("instrumentation/heading-indicator/caged-flag")) { |
| 276 |
returnString = returnString ~ "\n(caged)"; |
| 277 |
} |
| 278 |
return returnString; |
| 279 |
</script> |
| 280 |
</binding> |
| 281 |
</hovered> |
| 282 |
</animation> |
| 283 |
|
| 284 |
<effect> |
| 285 |
<inherits-from>../../../../Effects/interior/lm-hi</inherits-from> |
| 286 |
<object-name>Face</object-name> |
| 287 |
<object-name>OBS-Knob</object-name> |
| 288 |
<object-name>Hdg-Knob</object-name> |
| 289 |
<object-name>HdgBug</object-name> |
| 290 |
<object-name>Front</object-name> |
| 291 |
<object-name>Case</object-name> |
| 292 |
</effect> |
| 293 |
|
| 294 |
<animation> |
| 295 |
<type>material</type> |
| 296 |
<object-name>Face</object-name> |
| 297 |
<object-name>Front</object-name> |
| 298 |
<object-name>HdgBug</object-name> |
| 299 |
<object-name>Case</object-name> |
| 300 |
<condition> |
| 301 |
<or> |
| 302 |
<not> |
| 303 |
<property>sim/rendering/shaders/skydome</property> |
| 304 |
</not> |
| 305 |
<equals> |
| 306 |
<property>sim/rendering/shaders/model</property> |
| 307 |
<value>0</value> |
| 308 |
</equals> |
| 309 |
</or> |
| 310 |
</condition> |
| 311 |
<emission> |
| 312 |
<red-prop>/sim/model/material/instruments/default-red-combined-factor</red-prop> |
| 313 |
<green-prop>/sim/model/material/instruments/default-green-combined-factor</green-prop> |
| 314 |
<blue-prop>/sim/model/material/instruments/default-blue-combined-factor</blue-prop> |
| 315 |
</emission> |
| 316 |
</animation> |
| 317 |
|
| 318 |
<animation> |
| 319 |
<type>material</type> |
| 320 |
<object-name>OBS-Knob</object-name> |
| 321 |
<object-name>Hdg-Knob</object-name> |
| 322 |
<condition> |
| 323 |
<or> |
| 324 |
<not> |
| 325 |
<property>sim/rendering/shaders/skydome</property> |
| 326 |
</not> |
| 327 |
<equals> |
| 328 |
<property>sim/rendering/shaders/model</property> |
| 329 |
<value>0</value> |
| 330 |
</equals> |
| 331 |
</or> |
| 332 |
</condition> |
| 333 |
<emission> |
| 334 |
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop> |
| 335 |
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop> |
| 336 |
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop> |
| 337 |
</emission> |
| 338 |
</animation> |
| 339 |
|
| 340 |
</PropertyList> |