autopilot-H.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624
  1. <?xml version="1.0"?>
  2. <!-- Generic Autopilot Configuration -->
  3. <!-- Each component is evaluated in the order specified. You can make up -->
  4. <!-- property names to pass the result of one component on to a subsequent -->
  5. <!-- component. -->
  6. <PropertyList>
  7. <!-- =============================================================== -->
  8. <!-- Roll Axis Modes -->
  9. <!-- =============================================================== -->
  10. <!-- Wing leveler -->
  11. <pid-controller>
  12. <name>Wing Leveler (Turn Coordinator based)</name>
  13. <debug>false</debug>
  14. <enable>
  15. <prop>/autopilot/locks/heading</prop>
  16. <value>wing-leveler</value>
  17. </enable>
  18. <input>
  19. <prop>/instrumentation/magnetic-compass/indicated-heading-deg</prop>
  20. </input>
  21. <reference>
  22. <value>0.0</value>
  23. </reference>
  24. <output>
  25. <prop>/controls/flight/fcs/yaw</prop>
  26. </output>
  27. <config>
  28. <Kp>-1.0</Kp> <!-- proportional gain -->
  29. <beta>1.0</beta> <!-- input value weighing factor -->
  30. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  31. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  32. <!-- unfiltered derivative error -->
  33. <Ti>3.0</Ti> <!-- integrator time -->
  34. <Td>0.00001</Td> <!-- derivator time -->
  35. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  36. <u_max>20.0</u_max> <!-- maximum output clamp -->
  37. </config>
  38. </pid-controller>
  39. <!-- Heading Bug Hold. 2 stage cascade controller. -->
  40. <!-- Stage #1 sets target roll based on diff between current heading -->
  41. <!-- and heading bug. -->
  42. <pid-controller>
  43. <name>Heading Bug Hold (DG based) Stage 1</name>
  44. <debug>false</debug>
  45. <enable>
  46. <prop>/autopilot/locks/heading</prop>
  47. <value>dg-heading-hold</value>
  48. </enable>
  49. <input>
  50. <prop>/autopilot/internal/heading-bug-error-deg</prop>
  51. </input>
  52. <reference>
  53. <value>0.0</value>
  54. </reference>
  55. <output>
  56. <prop>/autopilot/internal/target-roll-deg</prop>
  57. </output>
  58. <config>
  59. <Kp>-1.0</Kp> <!-- proportional gain -->
  60. <beta>1.0</beta> <!-- input value weighing factor -->
  61. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  62. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  63. <!-- unfiltered derivative error -->
  64. <Ti>10.0</Ti> <!-- integrator time -->
  65. <Td>0.00001</Td> <!-- derivator time -->
  66. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  67. <u_max>20.0</u_max> <!-- maximum output clamp -->
  68. </config>
  69. </pid-controller>
  70. <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
  71. <pid-controller>
  72. <name>Heading Bug Hold (DG based) Stage 2</name>
  73. <debug>false</debug>
  74. <enable>
  75. <prop>/autopilot/locks/heading</prop>
  76. <value>dg-heading-hold</value>
  77. </enable>
  78. <input>
  79. <prop>/orientation/roll-deg</prop>
  80. </input>
  81. <reference>
  82. <prop>/autopilot/internal/target-roll-deg</prop>
  83. </reference>
  84. <output>
  85. <prop>/controls/flight/fcs/roll</prop>
  86. </output>
  87. <config>
  88. <Kp>0.1</Kp> <!-- proportional gain -->
  89. <beta>1.0</beta> <!-- input value weighing factor -->
  90. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  91. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  92. <!-- unfiltered derivative error -->
  93. <Ti>10.0</Ti> <!-- integrator time -->
  94. <Td>0.00001</Td> <!-- derivator time -->
  95. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  96. <u_max>1.0</u_max> <!-- maximum output clamp -->
  97. </config>
  98. </pid-controller>
  99. <pid-controller>
  100. <name>Heading Bug Hold (DG based) Stage 1</name>
  101. <debug>false</debug>
  102. <enable>
  103. <prop>/autopilot/locks/heading</prop>
  104. <value>dg-heading-hold</value>
  105. </enable>
  106. <input>
  107. <prop>/autopilot/internal/heading-bug-error-deg</prop>
  108. </input>
  109. <reference>
  110. <value>0.0</value>
  111. </reference>
  112. <output>
  113. <prop>/autopilot/internal/target-yaw-deg</prop>
  114. </output>
  115. <config>
  116. <Kp>-1.0</Kp> <!-- proportional gain -->
  117. <beta>1.0</beta> <!-- input value weighing factor -->
  118. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  119. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  120. <!-- unfiltered derivative error -->
  121. <Ti>5.0</Ti> <!-- integrator time -->
  122. <Td>0.00001</Td> <!-- derivator time -->
  123. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  124. <u_max>20.0</u_max> <!-- maximum output clamp -->
  125. </config>
  126. </pid-controller>
  127. <pid-controller>
  128. <name>Heading Bug Hold (DG based) Stage 2</name>
  129. <debug>false</debug>
  130. <enable>
  131. <prop>/autopilot/locks/heading</prop>
  132. <value>dg-heading-hold</value>
  133. </enable>
  134. <input>
  135. <prop>/orientation/yaw-deg</prop>
  136. </input>
  137. <reference>
  138. <prop>/autopilot/internal/target-yaw-deg</prop>
  139. </reference>
  140. <output>
  141. <prop>/controls/flight/fcs/yaw</prop>
  142. </output>
  143. <config>
  144. <Kp>0.1</Kp> <!-- proportional gain -->
  145. <beta>1.0</beta> <!-- input value weighing factor -->
  146. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  147. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  148. <!-- unfiltered derivative error -->
  149. <Ti>10.0</Ti> <!-- integrator time -->
  150. <Td>0.00001</Td> <!-- derivator time -->
  151. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  152. <u_max>1.0</u_max> <!-- maximum output clamp -->
  153. </config>
  154. </pid-controller>
  155. <!-- True Heading hold. 2 stage cascade controller. -->
  156. <!-- Stage #1 sets target roll based on diff between current heading -->
  157. <!-- and target heading. -->
  158. <pid-controller>
  159. <name>True Heading Hold (DG based) Stage 1</name>
  160. <debug>false</debug>
  161. <enable>
  162. <prop>/autopilot/locks/heading</prop>
  163. <value>true-heading-hold</value>
  164. </enable>
  165. <input>
  166. <prop>/autopilot/internal/true-heading-error-deg</prop>
  167. </input>
  168. <reference>
  169. <value>0.0</value>
  170. </reference>
  171. <output>
  172. <prop>/autopilot/internal/target-roll-deg</prop>
  173. </output>
  174. <config>
  175. <Kp>-1.0</Kp> <!-- proportional gain -->
  176. <beta>1.0</beta> <!-- input value weighing factor -->
  177. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  178. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  179. <!-- unfiltered derivative error -->
  180. <Ti>10.0</Ti> <!-- integrator time -->
  181. <Td>0.00001</Td> <!-- derivator time -->
  182. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  183. <u_max>20.0</u_max> <!-- maximum output clamp -->
  184. </config>
  185. </pid-controller>
  186. <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
  187. <pid-controller>
  188. <name>True Heading Hold (DG based) Stage 2</name>
  189. <debug>false</debug>
  190. <enable>
  191. <prop>/autopilot/locks/heading</prop>
  192. <value>true-heading-hold</value>
  193. </enable>
  194. <input>
  195. <prop>/orientation/roll-deg</prop>
  196. </input>
  197. <reference>
  198. <prop>/autopilot/internal/target-roll-deg</prop>
  199. </reference>
  200. <output>
  201. <prop>/controls/flight/fcs/roll</prop>
  202. <prop>/controls/flight/fcs/yaw</prop>
  203. </output>
  204. <config>
  205. <Kp>0.1</Kp> <!-- proportional gain -->
  206. <beta>1.0</beta> <!-- input value weighing factor -->
  207. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  208. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  209. <!-- unfiltered derivative error -->
  210. <Ti>10.0</Ti> <!-- integrator time -->
  211. <Td>0.00001</Td> <!-- derivator time -->
  212. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  213. <u_max>1.0</u_max> <!-- maximum output clamp -->
  214. </config>
  215. </pid-controller>
  216. <!-- Nav1 hold. 2 stage cascade controller. -->
  217. <!-- Stage #1 sets target roll based on diff between current heading -->
  218. <!-- and target heading. -->
  219. <pid-controller>
  220. <name>Nav1 Hold Stage 1</name>
  221. <debug>false</debug>
  222. <enable>
  223. <prop>/autopilot/locks/heading</prop>
  224. <value>nav1-hold</value>
  225. </enable>
  226. <input>
  227. <prop>/autopilot/internal/nav1-heading-error-deg</prop>
  228. </input>
  229. <reference>
  230. <value>0.0</value>
  231. </reference>
  232. <output>
  233. <prop>/autopilot/internal/target-roll-deg</prop>
  234. </output>
  235. <config>
  236. <Kp>-1.0</Kp> <!-- proportional gain -->
  237. <beta>1.0</beta> <!-- input value weighing factor -->
  238. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  239. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  240. <!-- unfiltered derivative error -->
  241. <Ti>10.0</Ti> <!-- integrator time -->
  242. <Td>0.00001</Td> <!-- derivator time -->
  243. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  244. <u_max>20.0</u_max> <!-- maximum output clamp -->
  245. </config>
  246. </pid-controller>
  247. <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
  248. <pid-controller>
  249. <name>Nav1 Hold Stage 2</name>
  250. <debug>false</debug>
  251. <enable>
  252. <prop>/autopilot/locks/heading</prop>
  253. <value>nav1-hold</value>
  254. </enable>
  255. <input>
  256. <prop>/orientation/roll-deg</prop>
  257. </input>
  258. <reference>
  259. <prop>/autopilot/internal/target-roll-deg</prop>
  260. </reference>
  261. <output>
  262. <prop>/controls/flight/fcs/roll</prop>
  263. <prop>/controls/flight/fcs/yaw</prop>
  264. </output>
  265. <config>
  266. <Kp>0.1</Kp> <!-- proportional gain -->
  267. <beta>1.0</beta> <!-- input value weighing factor -->
  268. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  269. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  270. <!-- unfiltered derivative error -->
  271. <Ti>10.0</Ti> <!-- integrator time -->
  272. <Td>0.00001</Td> <!-- derivator time -->
  273. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  274. <u_max>1.0</u_max> <!-- maximum output clamp -->
  275. </config>
  276. </pid-controller>
  277. <!-- =============================================================== -->
  278. <!-- Pitch Axis Modes -->
  279. <!-- =============================================================== -->
  280. <filter>
  281. <name>Pitch Hold</name>
  282. <type>gain</type>
  283. <debug>false</debug>
  284. <enable>
  285. <condition>
  286. <equals>
  287. <property>/autopilot/locks/altitude</property>
  288. <value>pitch-hold</value>
  289. </equals>
  290. </condition>
  291. </enable>
  292. <input>
  293. <property>/autopilot/settings/target-pitch-deg</property>
  294. <value>0</value>
  295. </input>
  296. <output>
  297. <property>/autopilot/internal/target-pitch-deg</property>
  298. </output>
  299. <gain>1.0</gain>
  300. <u_min>-70.0</u_min>
  301. <u_max>70.0</u_max>
  302. </filter>
  303. <pid-controller>
  304. <name>Altitude Hold Computer</name>
  305. <debug>false</debug>
  306. <enable>
  307. <condition>
  308. <equals>
  309. <property>/autopilot/locks/altitude</property>
  310. <value>altitude-hold</value>
  311. </equals>
  312. </condition>
  313. </enable>
  314. <input>
  315. <property>/position/altitude-ft</property>
  316. </input>
  317. <reference>
  318. <property>/autopilot/settings/target-altitude-ft</property>
  319. </reference>
  320. <output>
  321. <property>/autopilot/internal/target-pitch-deg</property>
  322. </output>
  323. <config>
  324. <Kp>0.075</Kp> <!-- proportional gain -0.01 -->
  325. <beta>1.0</beta> <!-- input value weighing factor -->
  326. <alpha>0.5</alpha> <!-- low pass filter weighing factor -->
  327. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  328. <!-- unfiltered derivative error -->
  329. <Ti>7.5</Ti> <!-- integrator time 10.0 -->
  330. <Td>0.0001</Td> <!-- derivator time -->
  331. <u_min>-6.0</u_min> <!-- minimum output clamp -->
  332. <u_max>6.0</u_max> <!-- maximum output clamp -->
  333. </config>
  334. </pid-controller>
  335. <pid-controller>
  336. <name>Altitude TFR Computer</name>
  337. <debug>false</debug>
  338. <enable>
  339. <condition>
  340. <equals>
  341. <property>/autopilot/locks/altitude</property>
  342. <value>agl-hold</value>
  343. </equals>
  344. </condition>
  345. </enable>
  346. <input>
  347. <property>/position/altitude-agl-ft</property>
  348. </input>
  349. <reference>
  350. <property>/autopilot/settings/target-agl-ft</property>
  351. </reference>
  352. <output>
  353. <property>/autopilot/internal/target-pitch-deg</property>
  354. </output>
  355. <config>
  356. <Kp>0.075</Kp> <!-- proportional gain -0.01 -->
  357. <beta>1.0</beta> <!-- input value weighing factor -->
  358. <alpha>0.5</alpha> <!-- low pass filter weighing factor -->
  359. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  360. <!-- unfiltered derivative error -->
  361. <Ti>7.5</Ti> <!-- integrator time 10.0 -->
  362. <Td>0.0001</Td> <!-- derivator time -->
  363. <u_min>-10.0</u_min> <!-- minimum output clamp -->
  364. <u_max>15.0</u_max> <!-- maximum output clamp -->
  365. </config>
  366. </pid-controller>
  367. <pid-controller>
  368. <name>System Command: Pitch</name>
  369. <debug>false</debug>
  370. <enable>
  371. <condition>
  372. <not-equals>
  373. <property>/autopilot/locks/altitude</property>
  374. <value />
  375. </not-equals>
  376. </condition>
  377. </enable>
  378. <input>
  379. <property>/orientation/pitch-deg</property>
  380. </input>
  381. <reference>
  382. <property>/autopilot/internal/target-pitch-deg</property>
  383. </reference>
  384. <output>
  385. <property>/controls/flight/elevator</property>
  386. </output>
  387. <config>
  388. <Kp>-0.05</Kp>
  389. <beta>1.0</beta> <!-- input value weighing factor -->
  390. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  391. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  392. <Ti>20.0</Ti> <!-- integrator time 10.0 -->
  393. <Td>0.00001</Td> <!-- derivator time -->
  394. <u_min>-0.35</u_min> <!-- minimum output clamp -->
  395. <u_max>0.35</u_max>
  396. </config>
  397. </pid-controller>
  398. <!-- vertical speed hold -->
  399. <pid-controller>
  400. <name>Vertical Speed Hold</name>
  401. <debug>false</debug>
  402. <enable>
  403. <prop>/autopilot/locks/altitude</prop>
  404. <value>vertical-speed-hold</value>
  405. </enable>
  406. <input>
  407. <prop>/velocities/vertical-speed-fps</prop>
  408. </input>
  409. <reference>
  410. <prop>/autopilot/settings/vertical-speed-fpm</prop>
  411. <scale>0.01667</scale>
  412. </reference>
  413. <output>
  414. <prop>/controls/flight/elevator-trim</prop>
  415. </output>
  416. <config>
  417. <Kp>-0.0025</Kp> <!-- proportional gain -->
  418. <beta>1.0</beta> <!-- input value weighing factor -->
  419. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  420. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  421. <!-- unfiltered derivative error -->
  422. <Ti>10.0</Ti> <!-- integrator time -->
  423. <Td>0.00001</Td> <!-- derivator time -->
  424. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  425. <u_max>1.0</u_max> <!-- maximum output clamp -->
  426. </config>
  427. </pid-controller>
  428. <!-- Glideslope hold. -->
  429. <!-- Stage #2 drives the elevator-trim to achieve the desired climb rate. -->
  430. <pid-controller>
  431. <name>Glideslop Hold</name>
  432. <debug>false</debug>
  433. <enable>
  434. <prop>/autopilot/locks/altitude</prop>
  435. <value>gs1-hold</value>
  436. </enable>
  437. <input>
  438. <prop>/velocities/vertical-speed-fps</prop>
  439. </input>
  440. <reference>
  441. <prop>/instrumentation/nav[0]/gs-rate-of-climb</prop>
  442. </reference>
  443. <output>
  444. <prop>/controls/flight/elevator-trim</prop>
  445. </output>
  446. <config>
  447. <Kp>-0.01</Kp> <!-- proportional gain -->
  448. <beta>1.0</beta> <!-- input value weighing factor -->
  449. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  450. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  451. <!-- unfiltered derivative error -->
  452. <Ti>10.0</Ti> <!-- integrator time -->
  453. <Td>0.00001</Td> <!-- derivator time -->
  454. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  455. <u_max>1.0</u_max> <!-- maximum output clamp -->
  456. </config>
  457. </pid-controller>
  458. <!-- vertical speed hold -->
  459. <pid-controller>
  460. <name>Vertical Speed Hold</name>
  461. <debug>false</debug>
  462. <enable>
  463. <prop>/autopilot/locks/altitude</prop>
  464. <value>vertical-speed-hold</value>
  465. </enable>
  466. <input>
  467. <prop>/velocities/vertical-speed-fps</prop>
  468. </input>
  469. <reference>
  470. <prop>/autopilot/settings/vertical-speed-fpm</prop>
  471. <scale>0.01667</scale>
  472. </reference>
  473. <output>
  474. <prop>/controls/flight/elevator-trim</prop>
  475. </output>
  476. <config>
  477. <Kp>-0.01</Kp> <!-- proportional gain -->
  478. <beta>1.0</beta> <!-- input value weighing factor -->
  479. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  480. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  481. <!-- unfiltered derivative error -->
  482. <Ti>10.0</Ti> <!-- integrator time -->
  483. <Td>0.00001</Td> <!-- derivator time -->
  484. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  485. <u_max>1.0</u_max> <!-- maximum output clamp -->
  486. </config>
  487. </pid-controller>
  488. <!-- =============================================================== -->
  489. <!-- Velocity Modes -->
  490. <!-- =============================================================== -->
  491. <!-- Auto throttle -->
  492. <pid-controller>
  493. <name>Auto Throttle (5 sec lookahead)</name>
  494. <debug>false</debug>
  495. <enable>
  496. <prop>/autopilot/locks/speed</prop>
  497. <value>speed-with-throttle</value>
  498. </enable>
  499. <input>
  500. <!-- <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop> -->
  501. <prop>/velocities/airspeed-kt</prop>
  502. </input>
  503. <reference>
  504. <prop>/autopilot/settings/target-speed-kt</prop>
  505. </reference>
  506. <output>
  507. <prop>/controls/engines/engine[0]/throttle</prop>
  508. <prop>/controls/engines/engine[1]/throttle</prop>
  509. <prop>/controls/engines/engine[2]/throttle</prop>
  510. <prop>/controls/engines/engine[3]/throttle</prop>
  511. <prop>/controls/engines/engine[4]/throttle</prop>
  512. <prop>/controls/engines/engine[5]/throttle</prop>
  513. <prop>/controls/engines/engine[6]/throttle</prop>
  514. <prop>/controls/engines/engine[7]/throttle</prop>
  515. </output>
  516. <config>
  517. <Kp>0.1</Kp> <!-- proportional gain -->
  518. <beta>1.0</beta> <!-- input value weighing factor -->
  519. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  520. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  521. <!-- unfiltered derivative error -->
  522. <Ti>10.0</Ti> <!-- integrator time -->
  523. <Td>0.00001</Td> <!-- derivator time -->
  524. <u_min>0.0</u_min> <!-- minimum output clamp -->
  525. <u_max>1.0</u_max> <!-- maximum output clamp -->
  526. </config>
  527. </pid-controller>
  528. <!-- Hold speed by varying pitch trim (Two stage cascading controller) -->
  529. <pid-controller>
  530. <name>Speed hold (vary pitch trim) Stage #1</name>
  531. <debug>false</debug>
  532. <enable>
  533. <prop>/autopilot/locks/speed</prop>
  534. <value>speed-with-pitch-trim</value>
  535. </enable>
  536. <input>
  537. <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop>
  538. </input>
  539. <reference>
  540. <prop>/autopilot/settings/target-speed-kt</prop>
  541. </reference>
  542. <output>
  543. <prop>/autopilot/settings/target-pitch-deg</prop>
  544. </output>
  545. <config>
  546. <Kp>-1.0</Kp> <!-- proportional gain -->
  547. <beta>1.0</beta> <!-- input value weighing factor -->
  548. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  549. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  550. <!-- unfiltered derivative error -->
  551. <Ti>1.0</Ti> <!-- integrator time -->
  552. <Td>0.00001</Td> <!-- derivator time -->
  553. <u_min>-15.0</u_min><!-- minimum output clamp -->
  554. <u_max>15.0</u_max> <!-- maximum output clamp -->
  555. </config>
  556. </pid-controller>
  557. <pid-controller>
  558. <name>Speed hold (vary pitch trim) Stage #2</name>
  559. <debug>false</debug>
  560. <enable>
  561. <prop>/autopilot/locks/speed</prop>
  562. <value>speed-with-pitch-trim</value>
  563. </enable>
  564. <input>
  565. <prop>/orientation/pitch-deg</prop>
  566. </input>
  567. <reference>
  568. <prop>/autopilot/settings/target-pitch-deg</prop>
  569. </reference>
  570. <output>
  571. <prop>/controls/flight/elevator-trim</prop>
  572. </output>
  573. <config>
  574. <Kp>-0.05</Kp> <!-- proportional gain -->
  575. <beta>1.0</beta> <!-- input value weighing factor -->
  576. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  577. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  578. <!-- unfiltered derivative error -->
  579. <Ti>1.0</Ti> <!-- integrator time -->
  580. <Td>0.00001</Td> <!-- derivator time -->
  581. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  582. <u_max>1.0</u_max> <!-- maximum output clamp -->
  583. </config>
  584. </pid-controller>
  585. </PropertyList>