| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
<system name="bushkits"> |
| 11 |
|
| 12 |
<channel name="extra-weight"> |
| 13 |
<switch name="extra-weight-left-26-in"> |
| 14 |
<default value="0"/> |
| 15 |
<test logic="AND" value="10"> |
| 16 |
bushkit EQ 1 |
| 17 |
</test> |
| 18 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[5]</output> |
| 19 |
</switch> |
| 20 |
|
| 21 |
<switch name="extra-weight-right-26-in"> |
| 22 |
<default value="0"/> |
| 23 |
<test logic="AND" value="10"> |
| 24 |
bushkit EQ 1 |
| 25 |
</test> |
| 26 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[6]</output> |
| 27 |
</switch> |
| 28 |
|
| 29 |
<switch name="extra-weight-left-36-in"> |
| 30 |
<default value="0"/> |
| 31 |
<test logic="AND" value="15"> |
| 32 |
bushkit EQ 2 |
| 33 |
</test> |
| 34 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[7]</output> |
| 35 |
</switch> |
| 36 |
|
| 37 |
<switch name="extra-weight-right-36-in"> |
| 38 |
<default value="0"/> |
| 39 |
<test logic="AND" value="15"> |
| 40 |
bushkit EQ 2 |
| 41 |
</test> |
| 42 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[8]</output> |
| 43 |
</switch> |
| 44 |
|
| 45 |
<switch name="extra-weight-left-ski"> |
| 46 |
<default value="0"/> |
| 47 |
<test logic="AND" value="18"> |
| 48 |
bushkit EQ 5 |
| 49 |
</test> |
| 50 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[13]</output> |
| 51 |
</switch> |
| 52 |
|
| 53 |
<switch name="extra-weight-right-ski"> |
| 54 |
<default value="0"/> |
| 55 |
<test logic="AND" value="18"> |
| 56 |
bushkit EQ 5 |
| 57 |
</test> |
| 58 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[14]</output> |
| 59 |
</switch> |
| 60 |
|
| 61 |
<switch name="extra-weight-180hp"> |
| 62 |
|
| 63 |
<default value="0"/> |
| 64 |
<test logic="AND" value="175"> |
| 65 |
/controls/engines/active-engine EQ 1 |
| 66 |
</test> |
| 67 |
<output>/fdm/jsbsim/inertia/pointmass-weight-lbs[15]</output> |
| 68 |
</switch> |
| 69 |
|
| 70 |
<fcs_function name="extra-weight-left-float"> |
| 71 |
<function> |
| 72 |
<product> |
| 73 |
<eq> |
| 74 |
<property>bushkit</property> |
| 75 |
<value>3</value> |
| 76 |
</eq> |
| 77 |
<sum> |
| 78 |
<value>66.0</value> |
| 79 |
<property>left-pontoon/leaked-water-lbs</property> |
| 80 |
</sum> |
| 81 |
</product> |
| 82 |
</function> |
| 83 |
<output>inertia/pointmass-weight-lbs[9]</output> |
| 84 |
</fcs_function> |
| 85 |
|
| 86 |
<fcs_function name="extra-weight-right-float"> |
| 87 |
<function> |
| 88 |
<product> |
| 89 |
<eq> |
| 90 |
<property>bushkit</property> |
| 91 |
<value>3</value> |
| 92 |
</eq> |
| 93 |
<sum> |
| 94 |
<value>66.0</value> |
| 95 |
<property>right-pontoon/leaked-water-lbs</property> |
| 96 |
</sum> |
| 97 |
</product> |
| 98 |
</function> |
| 99 |
<output>inertia/pointmass-weight-lbs[10]</output> |
| 100 |
</fcs_function> |
| 101 |
|
| 102 |
<fcs_function name="extra-weight-left-amphibious"> |
| 103 |
<function> |
| 104 |
<product> |
| 105 |
<eq> |
| 106 |
<property>bushkit</property> |
| 107 |
<value>4</value> |
| 108 |
</eq> |
| 109 |
<sum> |
| 110 |
<value>138.0</value> |
| 111 |
<property>left-pontoon/leaked-water-lbs</property> |
| 112 |
</sum> |
| 113 |
</product> |
| 114 |
</function> |
| 115 |
<output>inertia/pointmass-weight-lbs[11]</output> |
| 116 |
</fcs_function> |
| 117 |
|
| 118 |
<fcs_function name="extra-weight-right-amphibious"> |
| 119 |
<function> |
| 120 |
<product> |
| 121 |
<eq> |
| 122 |
<property>bushkit</property> |
| 123 |
<value>4</value> |
| 124 |
</eq> |
| 125 |
<sum> |
| 126 |
<value>138.0</value> |
| 127 |
<property>right-pontoon/leaked-water-lbs</property> |
| 128 |
</sum> |
| 129 |
</product> |
| 130 |
</function> |
| 131 |
<output>inertia/pointmass-weight-lbs[12]</output> |
| 132 |
</fcs_function> |
| 133 |
</channel> |
| 134 |
|
| 135 |
<channel name="extra-drag"> |
| 136 |
<switch name="drag-26-in"> |
| 137 |
<default value="1"/> |
| 138 |
<test logic="AND" value="1.05"> |
| 139 |
bushkit EQ 1 |
| 140 |
</test> |
| 141 |
<output>gear/drag-coef[1]</output> |
| 142 |
</switch> |
| 143 |
|
| 144 |
<switch name="drag-36-in"> |
| 145 |
<default value="1"/> |
| 146 |
<test logic="AND" value="1.07"> |
| 147 |
bushkit EQ 2 |
| 148 |
</test> |
| 149 |
<output>gear/drag-coef[2]</output> |
| 150 |
</switch> |
| 151 |
|
| 152 |
<switch name="drag-Floats"> |
| 153 |
<default value="1"/> |
| 154 |
<test logic="AND" value="1.20"> |
| 155 |
bushkit EQ 3 |
| 156 |
</test> |
| 157 |
<output>gear/drag-coef[3]</output> |
| 158 |
</switch> |
| 159 |
|
| 160 |
<switch name="drag-Amphibious"> |
| 161 |
<default value="1"/> |
| 162 |
<test logic="AND" value="1.22"> |
| 163 |
bushkit EQ 4 |
| 164 |
</test> |
| 165 |
<output>gear/drag-coef[4]</output> |
| 166 |
</switch> |
| 167 |
|
| 168 |
<switch name="drag-Ski"> |
| 169 |
<default value="1"/> |
| 170 |
<test logic="AND" value="1.20"> |
| 171 |
bushkit EQ 5 |
| 172 |
</test> |
| 173 |
<output>gear/drag-coef[5]</output> |
| 174 |
</switch> |
| 175 |
|
| 176 |
<switch name="drag-Amphibious-Gear"> |
| 177 |
<default value="1"/> |
| 178 |
<test logic="AND" value="1.3"> |
| 179 |
bushkit EQ 4 |
| 180 |
/controls/gear/gear-down NE 0 |
| 181 |
</test> |
| 182 |
<output>gear/drag-coef[6]</output> |
| 183 |
</switch> |
| 184 |
</channel> |
| 185 |
|
| 186 |
<channel name="GPS-placement"> |
| 187 |
<switch name="gps-placement"> |
| 188 |
<default value="0"/> |
| 189 |
<test logic="AND" value="1"> |
| 190 |
bushkit EQ 4 |
| 191 |
</test> |
| 192 |
<output>/Interior/Panel/Instruments/garmin196/move</output> |
| 193 |
</switch> |
| 194 |
</channel> |
| 195 |
|
| 196 |
<channel name="JSBSim hydrodynamics integration"> |
| 197 |
<fcs_function name="tmp/floats-enabled-norm"> |
| 198 |
<function> |
| 199 |
<product> |
| 200 |
<value>1.0</value> |
| 201 |
<le> |
| 202 |
<value>3.0</value> |
| 203 |
<property>bushkit</property> |
| 204 |
</le> |
| 205 |
<le> |
| 206 |
<property>bushkit</property> |
| 207 |
<value>4.0</value> |
| 208 |
</le> |
| 209 |
<not> |
| 210 |
<and> |
| 211 |
<property>contact/unit[13]/solid</property> |
| 212 |
<property>contact/unit[14]/solid</property> |
| 213 |
<property>contact/unit[15]/solid</property> |
| 214 |
<property>contact/unit[16]/solid</property> |
| 215 |
<property>contact/unit[17]/solid</property> |
| 216 |
<property>contact/unit[18]/solid</property> |
| 217 |
</and> |
| 218 |
</not> |
| 219 |
</product> |
| 220 |
</function> |
| 221 |
<output>floats-enabled-norm</output> |
| 222 |
</fcs_function> |
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
<switch name="left-pontoon/contact-z-pos-in[0]"> |
| 227 |
<default value="38.5"/> |
| 228 |
<test logic="AND" value="-51.0"> |
| 229 |
simulation/sim-time-sec GT 0.25 |
| 230 |
bushkit GE 3 |
| 231 |
bushkit LE 4 |
| 232 |
contact/unit[13]/solid NE 0 |
| 233 |
</test> |
| 234 |
<output>contact/unit[13]/z-position</output> |
| 235 |
</switch> |
| 236 |
|
| 237 |
<switch name="left-pontoon/contact-z-pos-in[1]"> |
| 238 |
<default value="38.5"/> |
| 239 |
<test logic="AND" value="-48.0"> |
| 240 |
simulation/sim-time-sec GT 0.25 |
| 241 |
bushkit GE 3 |
| 242 |
bushkit LE 4 |
| 243 |
contact/unit[15]/solid NE 0 |
| 244 |
</test> |
| 245 |
<output>contact/unit[15]/z-position</output> |
| 246 |
</switch> |
| 247 |
|
| 248 |
<switch name="left-pontoon/contact-z-pos-in[2]"> |
| 249 |
<default value="38.5"/> |
| 250 |
<test logic="AND" value="-43.9"> |
| 251 |
simulation/sim-time-sec GT 0.25 |
| 252 |
bushkit GE 3 |
| 253 |
bushkit LE 4 |
| 254 |
contact/unit[17]/solid NE 0 |
| 255 |
</test> |
| 256 |
<output>contact/unit[17]/z-position</output> |
| 257 |
</switch> |
| 258 |
|
| 259 |
<switch name="right-pontoon/contact-z-pos-in[0]"> |
| 260 |
<default value="38.5"/> |
| 261 |
<test logic="AND" value="-51.0"> |
| 262 |
simulation/sim-time-sec GT 0.25 |
| 263 |
bushkit GE 3 |
| 264 |
bushkit LE 4 |
| 265 |
contact/unit[14]/solid NE 0 |
| 266 |
</test> |
| 267 |
<output>contact/unit[14]/z-position</output> |
| 268 |
</switch> |
| 269 |
|
| 270 |
<switch name="right-pontoon/contact-z-pos-in[1]"> |
| 271 |
<default value="38.5"/> |
| 272 |
<test logic="AND" value="-48.0"> |
| 273 |
bushkit GE 3 |
| 274 |
bushkit LE 4 |
| 275 |
contact/unit[16]/solid NE 0 |
| 276 |
</test> |
| 277 |
<output>contact/unit[16]/z-position</output> |
| 278 |
</switch> |
| 279 |
|
| 280 |
<switch name="right-pontoon/contact-z-pos-in[2]"> |
| 281 |
<default value="38.5"/> |
| 282 |
<test logic="AND" value="-43.9"> |
| 283 |
simulation/sim-time-sec GT 0.25 |
| 284 |
bushkit GE 3 |
| 285 |
bushkit LE 4 |
| 286 |
contact/unit[18]/solid NE 0 |
| 287 |
</test> |
| 288 |
<output>contact/unit[18]/z-position</output> |
| 289 |
</switch> |
| 290 |
|
| 291 |
<fcs_function name="left-pontoon/leakage-lbs_sec"> |
| 292 |
<function> |
| 293 |
<product> |
| 294 |
<property>hydro/active-norm</property> |
| 295 |
<switch> |
| 296 |
<property>pontoon-damage/left-pontoon</property> |
| 297 |
<value>0.0</value> |
| 298 |
<value>250.0</value> |
| 299 |
<value>5.0</value> |
| 300 |
</switch> |
| 301 |
</product> |
| 302 |
</function> |
| 303 |
</fcs_function> |
| 304 |
|
| 305 |
|
| 306 |
<switch name="left-pontoon/leaked-water-windup-trigger"> |
| 307 |
<default value="-1"/> |
| 308 |
|
| 309 |
<test logic="AND" value="0"> |
| 310 |
pontoon-damage/left-pontoon GT 0 |
| 311 |
</test> |
| 312 |
</switch> |
| 313 |
|
| 314 |
|
| 315 |
<pid name="left-pontoon/leaked-water-lbs"> |
| 316 |
<input>left-pontoon/leakage-lbs_sec</input> |
| 317 |
<trigger>left-pontoon/leaked-water-windup-trigger</trigger> |
| 318 |
<kp>0.0</kp> |
| 319 |
<ki>1.0</ki> |
| 320 |
<kd>0.0</kd> |
| 321 |
<clipto> |
| 322 |
<min>0.0</min> |
| 323 |
<max>2500.0</max> |
| 324 |
</clipto> |
| 325 |
</pid> |
| 326 |
|
| 327 |
<fcs_function name="right-pontoon/leakage-lbs_sec"> |
| 328 |
<function> |
| 329 |
<product> |
| 330 |
<property>hydro/active-norm</property> |
| 331 |
<switch> |
| 332 |
<property>pontoon-damage/right-pontoon</property> |
| 333 |
<value>0.0</value> |
| 334 |
<value>250.0</value> |
| 335 |
<value>5.0</value> |
| 336 |
</switch> |
| 337 |
</product> |
| 338 |
</function> |
| 339 |
</fcs_function> |
| 340 |
|
| 341 |
|
| 342 |
<switch name="right-pontoon/leaked-water-windup-trigger"> |
| 343 |
<default value="-1"/> |
| 344 |
|
| 345 |
<test logic="AND" value="0"> |
| 346 |
pontoon-damage/right-pontoon GT 0 |
| 347 |
</test> |
| 348 |
</switch> |
| 349 |
|
| 350 |
|
| 351 |
<pid name="right-pontoon/leaked-water-lbs"> |
| 352 |
<input>right-pontoon/leakage-lbs_sec</input> |
| 353 |
<trigger>right-pontoon/leaked-water-windup-trigger</trigger> |
| 354 |
<kp>0.0</kp> |
| 355 |
<ki>1.0</ki> |
| 356 |
<kd>0.0</kd> |
| 357 |
<clipto> |
| 358 |
<min>0.0</min> |
| 359 |
<max>2500.0</max> |
| 360 |
</clipto> |
| 361 |
</pid> |
| 362 |
|
| 363 |
<switch name="mooring-allowed"> |
| 364 |
<default value="0"/> |
| 365 |
<test logic="AND" value="1"> |
| 366 |
bushkit GE 3 |
| 367 |
bushkit LE 4 |
| 368 |
/controls/mooring/port-available EQ 1 |
| 369 |
hydro/active-norm EQ 0 |
| 370 |
</test> |
| 371 |
<output>/controls/mooring/allowed</output> |
| 372 |
</switch> |
| 373 |
|
| 374 |
</channel> |
| 375 |
|
| 376 |
</system> |