| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
<PropertyList> |
| 4 |
|
| 5 |
<path>flaps.ac</path> |
| 6 |
|
| 7 |
<params> |
| 8 |
<flaps-lever>/sim/model/c172p/cockpit/flaps-lever</flaps-lever> |
| 9 |
</params> |
| 10 |
|
| 11 |
<effect> |
| 12 |
<inherits-from>Aircraft/c172p/Models/Effects/interior/lm-fg1000-flaps</inherits-from> |
| 13 |
<object-name>FlapSwitch</object-name> |
| 14 |
<object-name>FlapPos</object-name> |
| 15 |
<object-name>rect</object-name> |
| 16 |
</effect> |
| 17 |
|
| 18 |
<effect> |
| 19 |
<inherits-from>Aircraft/c172p/Models/Effects/interior/lm-fg1000-flaps-implicit</inherits-from> |
| 20 |
<object-name>legend</object-name> |
| 21 |
</effect> |
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
<animation> |
| 28 |
<type>translate</type> |
| 29 |
<property>surface-positions/flap-pos-norm</property> |
| 30 |
<object-name>FlapPos</object-name> |
| 31 |
<axis> |
| 32 |
<x>0.0</x> |
| 33 |
<y>0.0</y> |
| 34 |
<z>-1.0</z> |
| 35 |
</axis> |
| 36 |
<interpolation> |
| 37 |
<entry> |
| 38 |
<ind>0.0</ind> |
| 39 |
<dep>0.0</dep> |
| 40 |
</entry> |
| 41 |
<entry> |
| 42 |
<ind>0.333333</ind> |
| 43 |
<dep>0.022</dep> |
| 44 |
</entry> |
| 45 |
<entry> |
| 46 |
<ind>0.666666</ind> |
| 47 |
<dep>0.034</dep> |
| 48 |
</entry> |
| 49 |
<entry> |
| 50 |
<ind>1.0</ind> |
| 51 |
<dep>0.045</dep> |
| 52 |
</entry> |
| 53 |
</interpolation> |
| 54 |
</animation> |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
<animation> |
| 61 |
<type>slider</type> |
| 62 |
<drag-direction>vertical</drag-direction> |
| 63 |
<drag-scale-px>30</drag-scale-px> |
| 64 |
<property alias="/params/flaps-lever"/> |
| 65 |
<object-name>FlapSwitch</object-name> |
| 66 |
<axis> |
| 67 |
<x>0.0</x> |
| 68 |
<y>0.0</y> |
| 69 |
<z>-1.0</z> |
| 70 |
</axis> |
| 71 |
<interpolation> |
| 72 |
<entry> |
| 73 |
<ind>0.0</ind> |
| 74 |
<dep>0.0</dep> |
| 75 |
</entry> |
| 76 |
<entry> |
| 77 |
<ind>0.333333</ind> |
| 78 |
<dep>0.022</dep> |
| 79 |
</entry> |
| 80 |
<entry> |
| 81 |
<ind>0.666666</ind> |
| 82 |
<dep>0.036</dep> |
| 83 |
</entry> |
| 84 |
<entry> |
| 85 |
<ind>1.0</ind> |
| 86 |
<dep>0.052</dep> |
| 87 |
</entry> |
| 88 |
</interpolation> |
| 89 |
|
| 90 |
|
| 91 |
<decrease> |
| 92 |
<binding> |
| 93 |
<command>nasal</command> |
| 94 |
<script>controls.flapsDown(1);</script> |
| 95 |
</binding> |
| 96 |
</decrease> |
| 97 |
|
| 98 |
|
| 99 |
<increase> |
| 100 |
<binding> |
| 101 |
<command>nasal</command> |
| 102 |
<script>controls.flapsDown(-1);</script> |
| 103 |
</binding> |
| 104 |
</increase> |
| 105 |
</animation> |
| 106 |
|
| 107 |
<animation> |
| 108 |
<type>translate</type> |
| 109 |
<property alias="/params/flaps-lever"/> |
| 110 |
<object-name>FlapSwitch</object-name> |
| 111 |
<axis> |
| 112 |
<x>0.0</x> |
| 113 |
<y>1.0</y> |
| 114 |
<z>0.0</z> |
| 115 |
</axis> |
| 116 |
<interpolation> |
| 117 |
<entry> |
| 118 |
<ind>0.0</ind> |
| 119 |
<dep>-0.001</dep> |
| 120 |
</entry> |
| 121 |
<entry> |
| 122 |
<ind>0.333333</ind> |
| 123 |
<dep>-0.001</dep> |
| 124 |
</entry> |
| 125 |
<entry> |
| 126 |
<ind>0.345</ind> |
| 127 |
<dep>0.0035</dep> |
| 128 |
</entry> |
| 129 |
<entry> |
| 130 |
<ind>0.666666</ind> |
| 131 |
<dep>0.0035</dep> |
| 132 |
</entry> |
| 133 |
<entry> |
| 134 |
<ind>0.675</ind> |
| 135 |
<dep>0.0055</dep> |
| 136 |
</entry> |
| 137 |
<entry> |
| 138 |
<ind>1.0</ind> |
| 139 |
<dep>0.0055</dep> |
| 140 |
</entry> |
| 141 |
</interpolation> |
| 142 |
</animation> |
| 143 |
|
| 144 |
<animation> |
| 145 |
<type>material</type> |
| 146 |
<object-name>FlapSwitch</object-name> |
| 147 |
<object-name>FlapPos</object-name> |
| 148 |
<object-name>rect</object-name> |
| 149 |
<condition> |
| 150 |
<or> |
| 151 |
<not> |
| 152 |
<property>sim/rendering/shaders/skydome</property> |
| 153 |
</not> |
| 154 |
<equals> |
| 155 |
<property>sim/rendering/shaders/model</property> |
| 156 |
<value>0</value> |
| 157 |
</equals> |
| 158 |
</or> |
| 159 |
</condition> |
| 160 |
<emission> |
| 161 |
<red-prop>/sim/model/c172p/lighting/rgb-ra-r-factor</red-prop> |
| 162 |
<green-prop>/sim/model/c172p/lighting/rgb-ra-g-factor</green-prop> |
| 163 |
<blue-prop>/sim/model/c172p/lighting/rgb-ra-b-factor</blue-prop> |
| 164 |
</emission> |
| 165 |
</animation> |
| 166 |
|
| 167 |
</PropertyList> |