| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
<PropertyList include="kap140-config.xml"> |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
<filter> |
| 10 |
<name>Nav Course</name> |
| 11 |
<type>gain</type> |
| 12 |
<gain>1.0</gain> |
| 13 |
<input> |
| 14 |
<condition> |
| 15 |
<property>autopilot/kap140/config/hsi-installed</property> |
| 16 |
</condition> |
| 17 |
<property>instrumentation/nav-source/selected-radial-deg</property> |
| 18 |
</input> |
| 19 |
<input>/autopilot/settings/heading-bug-deg</input> |
| 20 |
<output>/autopilot/internal/nav-course</output> |
| 21 |
</filter> |
| 22 |
|
| 23 |
<filter> |
| 24 |
<name>Nav Course Reciprocal Stage 1</name> |
| 25 |
<debug>false</debug> |
| 26 |
<type>gain</type> |
| 27 |
<gain>1.0</gain> |
| 28 |
<input> |
| 29 |
<expression> |
| 30 |
<sum> |
| 31 |
<property>autopilot/internal/nav-course</property> |
| 32 |
<value>180</value> |
| 33 |
</sum> |
| 34 |
</expression> |
| 35 |
</input> |
| 36 |
<output>/autopilot/internal/nav-course-reciprocal-cmd</output> |
| 37 |
</filter> |
| 38 |
|
| 39 |
<filter> |
| 40 |
<name>Nav Course Reciprocal State 2</name> |
| 41 |
<debug>false</debug> |
| 42 |
<type>gain</type> |
| 43 |
<gain>1.0</gain> |
| 44 |
<input> |
| 45 |
<condition> |
| 46 |
<greater-than-equals> |
| 47 |
<property>autopilot/internal/nav-course-reciprocal-cmd</property> |
| 48 |
<value>360.5</value> |
| 49 |
</greater-than-equals> |
| 50 |
</condition> |
| 51 |
<expression> |
| 52 |
<dif> |
| 53 |
<property>autopilot/internal/nav-course-reciprocal-cmd</property> |
| 54 |
<value>360</value> |
| 55 |
</dif> |
| 56 |
</expression> |
| 57 |
</input> |
| 58 |
<input> |
| 59 |
<condition> |
| 60 |
<less-than> |
| 61 |
<property>autopilot/internal/nav-course-reciprocal-cmd</property> |
| 62 |
<value>0.5</value> |
| 63 |
</less-than> |
| 64 |
</condition> |
| 65 |
<expression> |
| 66 |
<sum> |
| 67 |
<property>autopilot/internal/nav-course-reciprocal-cmd</property> |
| 68 |
<value>360</value> |
| 69 |
</sum> |
| 70 |
</expression> |
| 71 |
</input> |
| 72 |
<input>/autopilot/internal/nav-course-reciprocal-cmd</input> |
| 73 |
<output>/autopilot/internal/nav-course-reciprocal</output> |
| 74 |
</filter> |
| 75 |
|
| 76 |
<filter> |
| 77 |
<name>Nav Course Error</name> |
| 78 |
<type>gain</type> |
| 79 |
<gain>1.0</gain> |
| 80 |
<input> |
| 81 |
<condition> |
| 82 |
<property>autopilot/internal/logic/rev-active</property> |
| 83 |
</condition> |
| 84 |
<property>autopilot/internal/nav-course-reciprocal</property> |
| 85 |
<offset> |
| 86 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 87 |
<scale>-1.0</scale> |
| 88 |
</offset> |
| 89 |
</input> |
| 90 |
<input> |
| 91 |
<condition> |
| 92 |
<or> |
| 93 |
<property>autopilot/internal/logic/nav-active</property> |
| 94 |
<property>autopilot/internal/logic/apr-active</property> |
| 95 |
</or> |
| 96 |
</condition> |
| 97 |
<property>autopilot/internal/nav-course</property> |
| 98 |
<offset> |
| 99 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 100 |
<scale>-1.0</scale> |
| 101 |
</offset> |
| 102 |
</input> |
| 103 |
<input>0</input> |
| 104 |
<output>/autopilot/internal/nav-course-error</output> |
| 105 |
<period> |
| 106 |
<min>-180</min> |
| 107 |
<max>180</max> |
| 108 |
</period> |
| 109 |
</filter> |
| 110 |
|
| 111 |
<filter> |
| 112 |
<name>DG HeadingBug latch actual heading error</name> |
| 113 |
<type>gain</type> |
| 114 |
<gain>1.0</gain> |
| 115 |
<input> |
| 116 |
<condition> |
| 117 |
<not><property>autopilot/kap140/config/hsi-installed</property></not> |
| 118 |
<or> |
| 119 |
<property>autopilot/internal/logic/rev-active</property> |
| 120 |
<equals> |
| 121 |
<property>autopilot/kap140/settings/lateral-arm</property> |
| 122 |
<value>5</value> |
| 123 |
</equals> |
| 124 |
</or> |
| 125 |
</condition> |
| 126 |
<property>autopilot/settings/heading-bug-latch</property> |
| 127 |
<offset> |
| 128 |
<expression> |
| 129 |
<sum> |
| 130 |
<value>180</value> |
| 131 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 132 |
</sum> |
| 133 |
</expression> |
| 134 |
<scale>-1.0</scale> |
| 135 |
</offset> |
| 136 |
</input> |
| 137 |
<input> |
| 138 |
<condition> |
| 139 |
<not><property>autopilot/kap140/config/hsi-installed</property></not> |
| 140 |
</condition> |
| 141 |
<property>autopilot/settings/heading-bug-latch</property> |
| 142 |
<offset> |
| 143 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 144 |
<scale>-1.0</scale> |
| 145 |
</offset> |
| 146 |
</input> |
| 147 |
<input>0</input> |
| 148 |
<output>/autopilot/internal/heading-bug-latch-error</output> |
| 149 |
<period> |
| 150 |
<min>-180</min> |
| 151 |
<max>180</max> |
| 152 |
</period> |
| 153 |
</filter> |
| 154 |
|
| 155 |
<filter> |
| 156 |
<name>Target Intercept Angle P</name> |
| 157 |
<type>gain</type> |
| 158 |
<gain>12.5</gain> |
| 159 |
<input> |
| 160 |
<expression> |
| 161 |
<product> |
| 162 |
<property>instrumentation/nav-source/heading-needle-deflection</property> |
| 163 |
<value>0.8</value> |
| 164 |
</product> |
| 165 |
</expression> |
| 166 |
</input> |
| 167 |
<output>/autopilot/internal/intercept-angle-p</output> |
| 168 |
<min>-45</min> |
| 169 |
<max>45</max> |
| 170 |
</filter> |
| 171 |
|
| 172 |
<filter> |
| 173 |
<name>Target Intercept Angle I</name> |
| 174 |
<type>integrator</type> |
| 175 |
<gain>0.05</gain> |
| 176 |
<input> |
| 177 |
<condition> |
| 178 |
<and> |
| 179 |
<or> |
| 180 |
<property>autopilot/internal/logic/nav-active</property> |
| 181 |
<property>autopilot/internal/logic/apr-active</property> |
| 182 |
<property>autopilot/internal/logic/rev-active</property> |
| 183 |
</or> |
| 184 |
<less-than-equals> |
| 185 |
<property>autopilot/internal/nav-course-error</property> |
| 186 |
<value>10</value> |
| 187 |
</less-than-equals> |
| 188 |
<greater-than-equals> |
| 189 |
<property>autopilot/internal/nav-course-error</property> |
| 190 |
<value>-10</value> |
| 191 |
</greater-than-equals> |
| 192 |
<less-than-equals> |
| 193 |
<property>instrumentation/nav-source/heading-needle-deflection</property> |
| 194 |
<value>1</value> |
| 195 |
</less-than-equals> |
| 196 |
<greater-than-equals> |
| 197 |
<property>instrumentation/nav-source/heading-needle-deflection</property> |
| 198 |
<value>-1</value> |
| 199 |
</greater-than-equals> |
| 200 |
</and> |
| 201 |
</condition> |
| 202 |
<expression> |
| 203 |
<product> |
| 204 |
<property>instrumentation/nav-source/heading-needle-deflection</property> |
| 205 |
<value>0.8</value> |
| 206 |
</product> |
| 207 |
</expression> |
| 208 |
</input> |
| 209 |
<input> |
| 210 |
<expression> |
| 211 |
<product> |
| 212 |
<value>-75.0</value> |
| 213 |
<property>autopilot/internal/intercept-angle-i</property> |
| 214 |
</product> |
| 215 |
</expression> |
| 216 |
</input> |
| 217 |
<output>/autopilot/internal/intercept-angle-i</output> |
| 218 |
<u_min>-5</u_min> |
| 219 |
<u_max>5</u_max> |
| 220 |
</filter> |
| 221 |
|
| 222 |
<filter> |
| 223 |
<name>Target Intercept Angle D</name> |
| 224 |
<type>derivative</type> |
| 225 |
<input> |
| 226 |
<expression> |
| 227 |
<product> |
| 228 |
<property>instrumentation/nav-source/heading-needle-deflection</property> |
| 229 |
<value>0.8</value> |
| 230 |
</product> |
| 231 |
</expression> |
| 232 |
</input> |
| 233 |
<reference>0</reference> |
| 234 |
<output>/autopilot/internal/intercept-angle-d</output> |
| 235 |
<filter-time>45</filter-time> |
| 236 |
<min>-45</min> |
| 237 |
<max>45</max> |
| 238 |
</filter> |
| 239 |
|
| 240 |
<filter> |
| 241 |
<name>Target Intercept Angle</name> |
| 242 |
<debug>false</debug> |
| 243 |
<type>gain</type> |
| 244 |
<gain>1.0</gain> |
| 245 |
<input> |
| 246 |
<expression> |
| 247 |
<sum> |
| 248 |
<property>autopilot/internal/intercept-angle-p</property> |
| 249 |
<property>autopilot/internal/intercept-angle-i</property> |
| 250 |
<property>autopilot/internal/intercept-angle-d</property> |
| 251 |
</sum> |
| 252 |
</expression> |
| 253 |
</input> |
| 254 |
<output>/autopilot/internal/intercept-angle</output> |
| 255 |
<min>-45</min> |
| 256 |
<max>45</max> |
| 257 |
</filter> |
| 258 |
|
| 259 |
<filter> |
| 260 |
<name>Heading Bug Latch</name> |
| 261 |
<type>gain</type> |
| 262 |
<gain>1.0</gain> |
| 263 |
<input> |
| 264 |
<condition> |
| 265 |
<greater-than> |
| 266 |
<property>autopilot/kap140/panel/hdg-timer</property> |
| 267 |
<value>1</value> |
| 268 |
</greater-than> |
| 269 |
</condition> |
| 270 |
<property>autopilot/settings/heading-bug-latch</property> |
| 271 |
</input> |
| 272 |
<input>/autopilot/settings/heading-bug-deg</input> |
| 273 |
<output>/autopilot/settings/heading-bug-latch</output> |
| 274 |
</filter> |
| 275 |
|
| 276 |
<filter> |
| 277 |
<name>Heading/Nav Error Deg</name> |
| 278 |
<debug>false</debug> |
| 279 |
<type>gain</type> |
| 280 |
<gain>1.0</gain> |
| 281 |
<input> |
| 282 |
<condition> |
| 283 |
<property>autopilot/internal/logic/rev-active</property> |
| 284 |
</condition> |
| 285 |
<expression> |
| 286 |
<sum> |
| 287 |
<property>autopilot/internal/nav-course-reciprocal</property> |
| 288 |
<product> |
| 289 |
<property>autopilot/internal/intercept-angle</property> |
| 290 |
<value>-1.0</value> |
| 291 |
</product> |
| 292 |
</sum> |
| 293 |
</expression> |
| 294 |
<offset> |
| 295 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 296 |
<scale>-1.0</scale> |
| 297 |
</offset> |
| 298 |
</input> |
| 299 |
<input> |
| 300 |
<condition> |
| 301 |
<or> |
| 302 |
<property>autopilot/internal/logic/nav-active</property> |
| 303 |
<property>autopilot/internal/logic/apr-active</property> |
| 304 |
</or> |
| 305 |
</condition> |
| 306 |
<expression> |
| 307 |
<sum> |
| 308 |
<property>autopilot/internal/nav-course</property> |
| 309 |
<property>autopilot/internal/intercept-angle</property> |
| 310 |
</sum> |
| 311 |
</expression> |
| 312 |
<offset> |
| 313 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 314 |
<scale>-1.0</scale> |
| 315 |
</offset> |
| 316 |
</input> |
| 317 |
<input> |
| 318 |
<condition> |
| 319 |
<property>autopilot/internal/logic/hdg-active</property> |
| 320 |
</condition> |
| 321 |
<property>autopilot/settings/heading-bug-latch</property> |
| 322 |
<offset> |
| 323 |
<property>instrumentation/heading-indicator/indicated-heading-deg</property> |
| 324 |
<scale>-1.0</scale> |
| 325 |
</offset> |
| 326 |
</input> |
| 327 |
<input>0</input> |
| 328 |
<output>/autopilot/internal/heading-error-deg</output> |
| 329 |
<period> |
| 330 |
<min>-180</min> |
| 331 |
<max>180</max> |
| 332 |
</period> |
| 333 |
</filter> |
| 334 |
|
| 335 |
<filter> |
| 336 |
<name>IT-CONTROLLER: Target Turn Rate</name> |
| 337 |
<type>gain</type> |
| 338 |
<gain>1.0</gain> |
| 339 |
<input> |
| 340 |
<condition> |
| 341 |
<or> |
| 342 |
<property>autopilot/internal/logic/hdg-active</property> |
| 343 |
<property>autopilot/internal/logic/nav-active</property> |
| 344 |
<property>autopilot/internal/logic/apr-active</property> |
| 345 |
<property>autopilot/internal/logic/rev-active</property> |
| 346 |
</or> |
| 347 |
</condition> |
| 348 |
<expression> |
| 349 |
<table> |
| 350 |
<property>autopilot/internal/heading-error-deg</property> |
| 351 |
<entry><ind>-30</ind><dep>-1.0</dep></entry> |
| 352 |
<entry><ind> -5</ind><dep>-0.2</dep></entry> |
| 353 |
<entry><ind> 5</ind><dep> 0.2</dep></entry> |
| 354 |
<entry><ind> 30</ind><dep> 1.0</dep></entry> |
| 355 |
</table> |
| 356 |
</expression> |
| 357 |
</input> |
| 358 |
<input>0</input> |
| 359 |
<output>/autopilot/internal/target-turn-rate</output> |
| 360 |
|
| 361 |
<min>-0.9</min> |
| 362 |
<max>0.9</max> |
| 363 |
</filter> |
| 364 |
|
| 365 |
<predict-simple> |
| 366 |
<name>Turn Rate Predictor</name> |
| 367 |
<debug>false</debug> |
| 368 |
<input>/instrumentation/turn-indicator/indicated-turn-rate</input> |
| 369 |
<output>/autopilot/internal/predicted-turn-rate</output> |
| 370 |
<seconds>2.0</seconds> |
| 371 |
<filter-gain>0.0</filter-gain> |
| 372 |
</predict-simple> |
| 373 |
|
| 374 |
<filter> |
| 375 |
<name>System Command: Target Turn Rate Filter</name> |
| 376 |
<debug>false</debug> |
| 377 |
<type>noise-spike</type> |
| 378 |
<input> |
| 379 |
<condition> |
| 380 |
<property>autopilot/internal/logic/roll-active</property> |
| 381 |
</condition> |
| 382 |
<property>autopilot/internal/target-turn-rate</property> |
| 383 |
</input> |
| 384 |
<input>/autopilot/internal/predicted-turn-rate</input> |
| 385 |
<output>/autopilot/internal/turn-rate-cmd</output> |
| 386 |
<max-rate-of-change> |
| 387 |
<condition> |
| 388 |
<property>autopilot/internal/logic/roll-active</property> |
| 389 |
</condition> |
| 390 |
<value>0.2</value> |
| 391 |
</max-rate-of-change> |
| 392 |
<max-rate-of-change>10</max-rate-of-change> |
| 393 |
</filter> |
| 394 |
|
| 395 |
<pid-controller> |
| 396 |
<name>System Command: Roll PI</name> |
| 397 |
<debug>false</debug> |
| 398 |
<enable> |
| 399 |
<condition> |
| 400 |
<property>autopilot/internal/logic/roll-active</property> |
| 401 |
</condition> |
| 402 |
</enable> |
| 403 |
<input>/autopilot/internal/turn-rate-cmd</input> |
| 404 |
<reference>/autopilot/internal/predicted-turn-rate</reference> |
| 405 |
<output>/autopilot/internal/aileron-pid</output> |
| 406 |
<config> |
| 407 |
<Kp>-0.08</Kp> |
| 408 |
<Ti>3.5</Ti> |
| 409 |
<Td>0.15</Td> |
| 410 |
<u_min>-0.25</u_min> |
| 411 |
<u_max>0.25</u_max> |
| 412 |
</config> |
| 413 |
</pid-controller> |
| 414 |
|
| 415 |
<filter> |
| 416 |
<name>System Command: Roll Output</name> |
| 417 |
<debug>false</debug> |
| 418 |
<type>noise-spike</type> |
| 419 |
<initialize-to>output</initialize-to> |
| 420 |
<enable> |
| 421 |
<condition> |
| 422 |
<property>autopilot/internal/logic/roll-active</property> |
| 423 |
</condition> |
| 424 |
</enable> |
| 425 |
<input> |
| 426 |
<expression> |
| 427 |
<product> |
| 428 |
<property>autopilot/internal/aileron-pid</property> |
| 429 |
<value alias="/params/gain-roll"/> |
| 430 |
</product> |
| 431 |
</expression> |
| 432 |
</input> |
| 433 |
<output>/controls/flight/aileron</output> |
| 434 |
<max-rate-of-change>0.085</max-rate-of-change> |
| 435 |
</filter> |
| 436 |
|
| 437 |
<filter> |
| 438 |
<name>System Command: Aileron Inactive Sync</name> |
| 439 |
<type>gain</type> |
| 440 |
<gain>1.0</gain> |
| 441 |
<enable> |
| 442 |
<condition> |
| 443 |
<not><property>autopilot/internal/logic/roll-active</property></not> |
| 444 |
</condition> |
| 445 |
</enable> |
| 446 |
<input> |
| 447 |
<expression> |
| 448 |
<div> |
| 449 |
<property>controls/flight/aileron</property> |
| 450 |
<value alias="/params/gain-roll"/> |
| 451 |
</div> |
| 452 |
</expression> |
| 453 |
</input> |
| 454 |
<output>/autopilot/internal/aileron-pid</output> |
| 455 |
<min>-0.25</min> |
| 456 |
<max>0.25</max> |
| 457 |
</filter> |
| 458 |
|
| 459 |
|
| 460 |
<filter> |
| 461 |
<name>Pressure Rate Computer</name> |
| 462 |
<debug>false</debug> |
| 463 |
<type>derivative</type> |
| 464 |
<input><property alias="/params/pressure-source"/></input> |
| 465 |
<output>/autopilot/internal/pressure-rate-raw</output> |
| 466 |
<filter-time>1.0</filter-time> |
| 467 |
</filter> |
| 468 |
|
| 469 |
<filter> |
| 470 |
<name>Pressure Rate Lag</name> |
| 471 |
<debug>false</debug> |
| 472 |
<type>double-exponential</type> |
| 473 |
<input>/autopilot/internal/pressure-rate-raw</input> |
| 474 |
<output>/autopilot/internal/pressure-rate</output> |
| 475 |
<filter-time>0.08</filter-time> |
| 476 |
</filter> |
| 477 |
|
| 478 |
<predict-simple> |
| 479 |
<name>Vertical Speed Predictor</name> |
| 480 |
<debug>false</debug> |
| 481 |
<input> |
| 482 |
<expression> |
| 483 |
<product> |
| 484 |
<property>autopilot/internal/pressure-rate</property> |
| 485 |
<value>-58000</value> |
| 486 |
</product> |
| 487 |
</expression> |
| 488 |
</input> |
| 489 |
<output>/autopilot/internal/predicted-vertical-speed</output> |
| 490 |
<seconds>2.0</seconds> |
| 491 |
<filter-gain>0.1</filter-gain> |
| 492 |
</predict-simple> |
| 493 |
|
| 494 |
<filter> |
| 495 |
<name>IT-CONTROLLER: Altitude Capture/Hold</name> |
| 496 |
<debug>false</debug> |
| 497 |
<type>gain</type> |
| 498 |
<gain>3625</gain> |
| 499 |
<input><property alias="/params/pressure-source"/></input> |
| 500 |
<reference>/autopilot/internal/target-pressure</reference> |
| 501 |
<output>/autopilot/internal/alt-vs</output> |
| 502 |
<min>-400</min> |
| 503 |
<max>400</max> |
| 504 |
</filter> |
| 505 |
|
| 506 |
<filter> |
| 507 |
<name>Vertical Speed G/S Sync</name> |
| 508 |
<debug>false</debug> |
| 509 |
<type>gain</type> |
| 510 |
<gain>1.0</gain> |
| 511 |
<enable> |
| 512 |
<condition> |
| 513 |
<not><property>autopilot/internal/logic/gs-active</property></not> |
| 514 |
</condition> |
| 515 |
</enable> |
| 516 |
<input> |
| 517 |
<expression> |
| 518 |
<product> |
| 519 |
<property>autopilot/internal/pressure-rate</property> |
| 520 |
<value>-58000</value> |
| 521 |
</product> |
| 522 |
</expression> |
| 523 |
</input> |
| 524 |
<output>/autopilot/internal/gs-vs</output> |
| 525 |
<min>-1200</min> |
| 526 |
<max>50</max> |
| 527 |
</filter> |
| 528 |
|
| 529 |
<predict-simple> |
| 530 |
<name>G/S Needle Predictor</name> |
| 531 |
<debug>false</debug> |
| 532 |
<input>/instrumentation/nav-source/gs-needle-deflection</input> |
| 533 |
<output>/autopilot/internal/predicted-gs-needle</output> |
| 534 |
<seconds>1.0</seconds> |
| 535 |
<filter-gain>0.1</filter-gain> |
| 536 |
</predict-simple> |
| 537 |
|
| 538 |
<pid-controller> |
| 539 |
<name>IT-CONTROLLER: G/S</name> |
| 540 |
<debug>false</debug> |
| 541 |
<enable> |
| 542 |
<condition> |
| 543 |
<property>autopilot/internal/logic/gs-active</property> |
| 544 |
</condition> |
| 545 |
</enable> |
| 546 |
<input>/autopilot/internal/predicted-gs-needle</input> |
| 547 |
<reference>0</reference> |
| 548 |
<output>/autopilot/internal/gs-vs</output> |
| 549 |
<config> |
| 550 |
<Kp>-400</Kp> |
| 551 |
<Ti>20.0</Ti> |
| 552 |
<Td>0.001</Td> |
| 553 |
<u_min>-1200</u_min> |
| 554 |
<u_max>50</u_max> |
| 555 |
</config> |
| 556 |
</pid-controller> |
| 557 |
|
| 558 |
<filter> |
| 559 |
<name>IT-CONTROLLER: Vertical Speed Switch</name> |
| 560 |
<debug>false</debug> |
| 561 |
<type>gain</type> |
| 562 |
<gain>1.0</gain> |
| 563 |
<input> |
| 564 |
<condition> |
| 565 |
<property>autopilot/internal/logic/gs-active</property> |
| 566 |
</condition> |
| 567 |
<property>autopilot/internal/gs-vs</property> |
| 568 |
</input> |
| 569 |
<input> |
| 570 |
<condition> |
| 571 |
<property>autopilot/internal/logic/alt-active</property> |
| 572 |
</condition> |
| 573 |
<property>autopilot/internal/alt-vs</property> |
| 574 |
</input> |
| 575 |
<input>/autopilot/internal/target-climb-rate</input> |
| 576 |
<output>/autopilot/internal/vs</output> |
| 577 |
</filter> |
| 578 |
|
| 579 |
<filter> |
| 580 |
<name>IT-CONTROLLER: Vertical Speed Filter</name> |
| 581 |
<debug>false</debug> |
| 582 |
<type>noise-spike</type> |
| 583 |
<input>/autopilot/internal/vs</input> |
| 584 |
<output>/autopilot/internal/vs-slow</output> |
| 585 |
<max-rate-of-change> |
| 586 |
<condition> |
| 587 |
<property>autopilot/internal/logic/pitch-active</property> |
| 588 |
</condition> |
| 589 |
<value>200</value> |
| 590 |
</max-rate-of-change> |
| 591 |
<max-rate-of-change>2000</max-rate-of-change> |
| 592 |
</filter> |
| 593 |
|
| 594 |
<pi-simple-controller> |
| 595 |
<name>IT-CONTROLLER: Acceleration PI</name> |
| 596 |
<debug>false</debug> |
| 597 |
<enable> |
| 598 |
<condition> |
| 599 |
<property>autopilot/internal/logic/pitch-active</property> |
| 600 |
</condition> |
| 601 |
</enable> |
| 602 |
<input>/autopilot/internal/vs-slow</input> |
| 603 |
<reference>/autopilot/internal/predicted-vertical-speed</reference> |
| 604 |
<output>/autopilot/internal/target-accel</output> |
| 605 |
<config> |
| 606 |
<Kp>-0.00015</Kp> |
| 607 |
<Ki>-0.000011</Ki> |
| 608 |
<min>-0.1</min> |
| 609 |
<max>0.1</max> |
| 610 |
</config> |
| 611 |
</pi-simple-controller> |
| 612 |
|
| 613 |
<filter> |
| 614 |
<name>System Command: Internal G Acceleration</name> |
| 615 |
<type>double-exponential</type> |
| 616 |
<input> |
| 617 |
<expression> |
| 618 |
<difference> |
| 619 |
<property>accelerations/pilot-g</property> |
| 620 |
<product> |
| 621 |
<abs><property>instrumentation/turn-indicator/indicated-turn-rate</property></abs> |
| 622 |
<value>0.05</value> |
| 623 |
</product> |
| 624 |
</difference> |
| 625 |
</expression> |
| 626 |
</input> |
| 627 |
<output>/autopilot/internal/g-damped</output> |
| 628 |
<filter-time>0.02</filter-time> |
| 629 |
</filter> |
| 630 |
|
| 631 |
<filter> |
| 632 |
<name>System Command: Target Acceleration</name> |
| 633 |
<type>gain</type> |
| 634 |
<gain>1.0</gain> |
| 635 |
<input> |
| 636 |
<condition> |
| 637 |
<property>autopilot/internal/logic/pitch-active</property> |
| 638 |
</condition> |
| 639 |
<expression> |
| 640 |
<sum> |
| 641 |
<property>autopilot/internal/target-accel</property> |
| 642 |
<value>1</value> |
| 643 |
</sum> |
| 644 |
</expression> |
| 645 |
</input> |
| 646 |
<input>/autopilot/internal/g-damped</input> |
| 647 |
<output>/autopilot/internal/accel-cmd</output> |
| 648 |
</filter> |
| 649 |
|
| 650 |
<pid-controller> |
| 651 |
<name>System Command: Elevator PI</name> |
| 652 |
<debug>false</debug> |
| 653 |
<enable> |
| 654 |
<condition> |
| 655 |
<property>autopilot/internal/logic/pitch-active</property> |
| 656 |
</condition> |
| 657 |
</enable> |
| 658 |
<input>/autopilot/internal/accel-cmd</input> |
| 659 |
<reference>/autopilot/internal/g-damped</reference> |
| 660 |
<output>/autopilot/internal/elevator-pi</output> |
| 661 |
<config> |
| 662 |
<Kp>0.16</Kp> |
| 663 |
<Ti>0.5</Ti> |
| 664 |
<Td>0.0</Td> |
| 665 |
<u_min>-0.25</u_min> |
| 666 |
<u_max>0.25</u_max> |
| 667 |
</config> |
| 668 |
</pid-controller> |
| 669 |
|
| 670 |
<filter> |
| 671 |
<name>System Command: Pitch Output</name> |
| 672 |
<debug>false</debug> |
| 673 |
<type>noise-spike</type> |
| 674 |
<initialize-to>output</initialize-to> |
| 675 |
<enable> |
| 676 |
<condition> |
| 677 |
<property>autopilot/internal/logic/pitch-active</property> |
| 678 |
</condition> |
| 679 |
</enable> |
| 680 |
<input> |
| 681 |
<expression> |
| 682 |
<product> |
| 683 |
<property>autopilot/internal/elevator-pi</property> |
| 684 |
<value alias="/params/gain-pitch"/> |
| 685 |
</product> |
| 686 |
</expression> |
| 687 |
</input> |
| 688 |
<output>/controls/flight/elevator</output> |
| 689 |
<max-rate-of-change>0.0769</max-rate-of-change> |
| 690 |
</filter> |
| 691 |
|
| 692 |
<filter> |
| 693 |
<name>System Command: Elevator Inactive Sync</name> |
| 694 |
<type>gain</type> |
| 695 |
<gain>1.0</gain> |
| 696 |
<enable> |
| 697 |
<condition> |
| 698 |
<not><property>autopilot/internal/logic/pitch-active</property></not> |
| 699 |
</condition> |
| 700 |
</enable> |
| 701 |
<input> |
| 702 |
<expression> |
| 703 |
<div> |
| 704 |
<property>controls/flight/elevator</property> |
| 705 |
<value alias="/params/gain-pitch"/> |
| 706 |
</div> |
| 707 |
</expression> |
| 708 |
</input> |
| 709 |
<output>/autopilot/internal/elevator-pi</output> |
| 710 |
<min>-0.25</min> |
| 711 |
<max>0.25</max> |
| 712 |
</filter> |
| 713 |
|
| 714 |
|
| 715 |
<filter> |
| 716 |
<name>vertical speed fpm</name> |
| 717 |
<debug>false</debug> |
| 718 |
<type>gain</type> |
| 719 |
<gain>-58000</gain> |
| 720 |
<input>/autopilot/internal/pressure-rate</input> |
| 721 |
<output>/autopilot/internal/vert-speed-fpm</output> |
| 722 |
</filter> |
| 723 |
|
| 724 |
|
| 725 |
|
| 726 |
<filter> |
| 727 |
<name>elevator-trim demand value</name> |
| 728 |
<debug>false</debug> |
| 729 |
<enable> |
| 730 |
<condition> |
| 731 |
<property>autopilot/internal/logic/pitch-active</property> |
| 732 |
</condition> |
| 733 |
</enable> |
| 734 |
<type>gain</type> |
| 735 |
<input> |
| 736 |
<condition> |
| 737 |
<greater-than> |
| 738 |
<property>controls/flight/elevator</property> |
| 739 |
<value>0.025</value> |
| 740 |
</greater-than> |
| 741 |
</condition> |
| 742 |
<value>1</value> |
| 743 |
</input> |
| 744 |
<input> |
| 745 |
<condition> |
| 746 |
<less-than> |
| 747 |
<property>controls/flight/elevator</property> |
| 748 |
<value>-0.025</value> |
| 749 |
</less-than> |
| 750 |
</condition> |
| 751 |
<value>-1</value> |
| 752 |
</input> |
| 753 |
<input>0</input> |
| 754 |
<output>autopilot/kap140/sensors/elevator-trim-demand</output> |
| 755 |
</filter> |
| 756 |
|
| 757 |
<logic> |
| 758 |
<name>Elevator-trim low demand</name> |
| 759 |
<input> |
| 760 |
<or> |
| 761 |
<greater-than> |
| 762 |
<property>autopilot/kap140/sensors/elevator-trim-demand</property> |
| 763 |
<value>0.1</value> |
| 764 |
</greater-than> |
| 765 |
<less-than> |
| 766 |
<property>autopilot/kap140/sensors/elevator-trim-demand</property> |
| 767 |
<value>-0.1</value> |
| 768 |
</less-than> |
| 769 |
</or> |
| 770 |
</input> |
| 771 |
<output> |
| 772 |
<property>autopilot/kap140/sensors/elevator-trim-demand-low</property> |
| 773 |
</output> |
| 774 |
</logic> |
| 775 |
<flipflop> |
| 776 |
|
| 777 |
<name>Elevator-trim high demand</name> |
| 778 |
<type>monostable</type> |
| 779 |
<inverted type="bool">true</inverted> |
| 780 |
<S> |
| 781 |
<not> |
| 782 |
<property>autopilot/kap140/sensors/elevator-trim-demand</property> |
| 783 |
</not> |
| 784 |
</S> |
| 785 |
<time> |
| 786 |
<value>10.0</value> |
| 787 |
</time> |
| 788 |
<output> |
| 789 |
<property>autopilot/kap140/sensors/elevator-trim-demand-high</property> |
| 790 |
</output> |
| 791 |
</flipflop> |
| 792 |
|
| 793 |
<logic> |
| 794 |
<name>Elevator-trim clutch engaged</name> |
| 795 |
<input> |
| 796 |
<and> |
| 797 |
<value alias="/params/autotrim-pitch"/> |
| 798 |
<property>autopilot/internal/logic/pitch-active</property> |
| 799 |
<or> |
| 800 |
<greater-than> |
| 801 |
<property>autopilot/kap140/sensors/elevator-trim-demand</property> |
| 802 |
<value>0.1</value> |
| 803 |
</greater-than> |
| 804 |
<less-than> |
| 805 |
<property>autopilot/kap140/sensors/elevator-trim-demand</property> |
| 806 |
<value>-0.1</value> |
| 807 |
</less-than> |
| 808 |
</or> |
| 809 |
</and> |
| 810 |
</input> |
| 811 |
<output>autopilot/kap140/servo/elevator-trim-servo/clutch-engaged</output> |
| 812 |
</logic> |
| 813 |
|
| 814 |
<filter> |
| 815 |
<name>Elevator-trim servo</name> |
| 816 |
<debug>false</debug> |
| 817 |
<type>noise-spike</type> |
| 818 |
<feedback-if-disabled>true</feedback-if-disabled> |
| 819 |
<initialize-to>output</initialize-to> |
| 820 |
<enable> |
| 821 |
<condition> |
| 822 |
<property>autopilot/kap140/servo/elevator-trim-servo/clutch-engaged</property> |
| 823 |
</condition> |
| 824 |
</enable> |
| 825 |
<input>autopilot/kap140/sensors/elevator-trim-demand</input> |
| 826 |
<output>controls/flight/elevator-trim</output> |
| 827 |
<output>autopilot/kap140/servo/elevator-trim</output> |
| 828 |
<min>-1</min> |
| 829 |
<max>1</max> |
| 830 |
<max-rate-of-change> |
| 831 |
<expression> |
| 832 |
<table> |
| 833 |
<abs><property>controls/flight/elevator</property></abs> |
| 834 |
<entry><ind>0.025</ind><dep>0.005</dep></entry> |
| 835 |
<entry><ind>0.100</ind><dep>0.050</dep></entry> |
| 836 |
</table> |
| 837 |
</expression> |
| 838 |
</max-rate-of-change> |
| 839 |
</filter> |
| 840 |
|
| 841 |
</PropertyList> |