wildcat-autopilot.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  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/turn-indicator/indicated-turn-rate</prop>
  20. </input>
  21. <reference>
  22. <value>0.0</value>
  23. </reference>
  24. <output>
  25. <prop>/controls/flight/aileron</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>5.0</Ti> <!-- integrator time -->
  34. <Td>0.00001</Td> <!-- derivator time -->
  35. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  36. <u_max>1.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>5.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/aileron</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>5.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. <!-- True Heading hold. 2 stage cascade controller. -->
  100. <!-- Stage #1 sets target roll based on diff between current heading -->
  101. <!-- and target heading. -->
  102. <pid-controller>
  103. <name>True Heading Hold (DG based) Stage 1</name>
  104. <debug>false</debug>
  105. <enable>
  106. <prop>/autopilot/locks/heading</prop>
  107. <value>true-heading-hold</value>
  108. </enable>
  109. <input>
  110. <prop>/autopilot/internal/true-heading-error-deg</prop>
  111. </input>
  112. <reference>
  113. <value>0.0</value>
  114. </reference>
  115. <output>
  116. <prop>/autopilot/internal/target-roll-deg</prop>
  117. </output>
  118. <config>
  119. <Kp>-1.0</Kp> <!-- proportional gain -->
  120. <beta>1.0</beta> <!-- input value weighing factor -->
  121. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  122. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  123. <!-- unfiltered derivative error -->
  124. <Ti>5.0</Ti> <!-- integrator time -->
  125. <Td>0.00001</Td> <!-- derivator time -->
  126. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  127. <u_max>20.0</u_max> <!-- maximum output clamp -->
  128. </config>
  129. </pid-controller>
  130. <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
  131. <pid-controller>
  132. <name>True Heading Hold (DG based) Stage 2</name>
  133. <debug>false</debug>
  134. <enable>
  135. <prop>/autopilot/locks/heading</prop>
  136. <value>true-heading-hold</value>
  137. </enable>
  138. <input>
  139. <prop>/orientation/roll-deg</prop>
  140. </input>
  141. <reference>
  142. <prop>/autopilot/internal/target-roll-deg</prop>
  143. </reference>
  144. <output>
  145. <prop>/controls/flight/aileron</prop>
  146. </output>
  147. <config>
  148. <Kp>0.1</Kp> <!-- proportional gain -->
  149. <beta>1.0</beta> <!-- input value weighing factor -->
  150. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  151. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  152. <!-- unfiltered derivative error -->
  153. <Ti>5.0</Ti> <!-- integrator time -->
  154. <Td>0.00001</Td> <!-- derivator time -->
  155. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  156. <u_max>1.0</u_max> <!-- maximum output clamp -->
  157. </config>
  158. </pid-controller>
  159. <!-- Nav1 hold. 2 stage cascade controller. -->
  160. <!-- Stage #1 sets target roll based on diff between current heading -->
  161. <!-- and target heading. -->
  162. <pid-controller>
  163. <name>Nav1 Hold Stage 1</name>
  164. <debug>false</debug>
  165. <enable>
  166. <prop>/autopilot/locks/heading</prop>
  167. <value>nav1-hold</value>
  168. </enable>
  169. <input>
  170. <prop>/autopilot/internal/nav1-heading-error-deg</prop>
  171. </input>
  172. <reference>
  173. <value>0.0</value>
  174. </reference>
  175. <output>
  176. <prop>/autopilot/internal/target-roll-deg</prop>
  177. </output>
  178. <config>
  179. <Kp>-1.0</Kp> <!-- proportional gain -->
  180. <beta>1.0</beta> <!-- input value weighing factor -->
  181. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  182. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  183. <!-- unfiltered derivative error -->
  184. <Ti>5.0</Ti> <!-- integrator time -->
  185. <Td>0.00001</Td> <!-- derivator time -->
  186. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  187. <u_max>20.0</u_max> <!-- maximum output clamp -->
  188. </config>
  189. </pid-controller>
  190. <!-- Stage #2 drives the ailerons to achieve the desired roll deg. -->
  191. <pid-controller>
  192. <name>Nav1 Hold Stage 2</name>
  193. <debug>false</debug>
  194. <enable>
  195. <prop>/autopilot/locks/heading</prop>
  196. <value>nav1-hold</value>
  197. </enable>
  198. <input>
  199. <prop>/orientation/roll-deg</prop>
  200. </input>
  201. <reference>
  202. <prop>/autopilot/internal/target-roll-deg</prop>
  203. </reference>
  204. <output>
  205. <prop>/controls/flight/aileron</prop>
  206. </output>
  207. <config>
  208. <Kp>0.1</Kp> <!-- proportional gain -->
  209. <beta>1.0</beta> <!-- input value weighing factor -->
  210. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  211. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  212. <!-- unfiltered derivative error -->
  213. <Ti>5.0</Ti> <!-- integrator time -->
  214. <Td>0.00001</Td> <!-- derivator time -->
  215. <u_min>-1.0</u_min> <!-- minimum output clamp -->
  216. <u_max>1.0</u_max> <!-- maximum output clamp -->
  217. </config>
  218. </pid-controller>
  219. <!-- =============================================================== -->
  220. <!-- Pitch Axis Modes -->
  221. <!-- =============================================================== -->
  222. <!-- Simple pitch hold -->
  223. <!-- <pid-controller>
  224. <name>Pitch hold</name>
  225. <debug>false</debug>
  226. <enable>
  227. <prop>/autopilot/locks/altitude</prop>
  228. <value>pitch-hold</value>
  229. </enable>
  230. <input>
  231. <prop>/orientation/pitch-deg</prop>
  232. </input>
  233. <reference>
  234. <prop>/autopilot/settings/target-pitch-deg</prop>
  235. </reference>
  236. <output>
  237. <prop>/controls/engines/engine[0]/throttle</prop>
  238. </output>
  239. <config>
  240. <Kp>-1.0</Kp> proportional gain -->
  241. <!-- <beta>1.0</beta> input value weighing factor -->
  242. <!-- <alpha>0.1</alpha> low pass filter weighing factor -->
  243. <!-- <gamma>0.0</gamma> input value weighing factor for -->
  244. <!-- unfiltered derivative error -->
  245. <!-- <Ti>5.0</Ti> integrator time -->
  246. <!-- <Td>0.00001</Td> derivator time -->
  247. <!-- <u_min>-20.0</u_min>minimum output clamp -->
  248. <!-- <u_max>20.0</u_max> maximum output clamp
  249. </config>
  250. </pid-controller> -->
  251. <!-- Simple angle of attack hold -->
  252. <pid-controller>
  253. <name>AOA hold</name>
  254. <debug>false</debug>
  255. <enable>
  256. <prop>/autopilot/locks/altitude</prop>
  257. <value>aoa-hold</value>
  258. </enable>
  259. <input>
  260. <prop>/orientation/alpha-deg</prop>
  261. </input>
  262. <reference>
  263. <prop>/autopilot/settings/target-aoa-deg</prop>
  264. </reference>
  265. <output>
  266. <prop>/controls/engines/engine[0]/throttle</prop>
  267. </output>
  268. <config>
  269. <Kp>-1.0</Kp> <!-- proportional gain -->
  270. <beta>1.0</beta> <!-- input value weighing factor -->
  271. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  272. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  273. <!-- unfiltered derivative error -->
  274. <Ti>5.0</Ti> <!-- integrator time -->
  275. <Td>0.00001</Td> <!-- derivator time -->
  276. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  277. <u_max>20.0</u_max> <!-- maximum output clamp -->
  278. </config>
  279. </pid-controller>
  280. <!-- Altitude hold. 2 stage cascade controller. -->
  281. <!-- Stage #1 sets target rate of climb based on diff between current alt -->
  282. <!-- and target altitude. -->
  283. <pi-simple-controller>
  284. <name>Altitude Hold (Altimeter based) Stage 1</name>
  285. <debug>false</debug>
  286. <enable>
  287. <prop>/autopilot/locks/altitude</prop>
  288. <value>altitude-hold</value>
  289. </enable>
  290. <input>
  291. <prop>/position/altitude-ft</prop>
  292. </input>
  293. <reference>
  294. <prop>/autopilot/settings/target-altitude-ft</prop>
  295. </reference>
  296. <output>
  297. <prop>/autopilot/internal/target-climb-rate-fps</prop>
  298. </output>
  299. <config>
  300. <Kp>1</Kp> <!-- proportional gain -->
  301. <Ki>0.0</Ki> <!-- integral gain -->
  302. <u_min>-16.67</u_min> <!-- minimum output clamp -->
  303. <u_max>8.33</u_max> <!-- maximum output clamp -->
  304. </config>
  305. </pi-simple-controller>
  306. <!-- Stage #2 drives the elevator-trim to achieve the desired climb rate. -->
  307. <pid-controller>
  308. <name>Altitude Hold (Altimeter based) Stage 2</name>
  309. <debug>false</debug>
  310. <enable>
  311. <prop>/autopilot/locks/altitude</prop>
  312. <value>altitude-hold</value>
  313. </enable>
  314. <input>
  315. <prop>/velocities/vertical-speed-fps</prop>
  316. </input>
  317. <reference>
  318. <prop>/autopilot/internal/target-climb-rate-fps</prop>
  319. </reference>
  320. <output>
  321. <prop>/controls/engines/engine[0]/throttle</prop>
  322. </output>
  323. <config>
  324. <Kp>-1.0</Kp> <!-- proportional gain -->
  325. <beta>1.0</beta> <!-- input value weighing factor -->
  326. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  327. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  328. <!-- unfiltered derivative error -->
  329. <Ti>5.0</Ti> <!-- integrator time -->
  330. <Td>0.00001</Td> <!-- derivator time -->
  331. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  332. <u_max>20.0</u_max> <!-- maximum output clamp -->
  333. </config>
  334. </pid-controller>
  335. <!-- AGL hold. 2 stage cascade controller. -->
  336. <!-- Stage #1 sets target rate of climb based on diff between current agl -->
  337. <!-- and target agl. -->
  338. <pi-simple-controller>
  339. <name>AGL Hold (Altimeter based) Stage 1</name>
  340. <debug>false</debug>
  341. <enable>
  342. <prop>/autopilot/locks/altitude</prop>
  343. <value>agl-hold</value>
  344. </enable>
  345. <input>
  346. <prop>/position/altitude-agl-ft</prop>
  347. </input>
  348. <reference>
  349. <prop>/autopilot/settings/target-agl-ft</prop>
  350. </reference>
  351. <output>
  352. <prop>/autopilot/internal/target-climb-rate-fps</prop>
  353. </output>
  354. <config>
  355. <Kp>1</Kp> <!-- proportional gain -->
  356. <Ki>0.0</Ki> <!-- integral gain -->
  357. <u_min>-16.67</u_min> <!-- minimum output clamp -->
  358. <u_max>8.33</u_max> <!-- maximum output clamp -->
  359. </config>
  360. </pi-simple-controller>
  361. <!-- Stage #2 drives the elevator-trim to achieve the desired climb rate. -->
  362. <pid-controller>
  363. <name>AGL Hold (Altimeter based) Stage 2</name>
  364. <debug>false</debug>
  365. <enable>
  366. <prop>/autopilot/locks/altitude</prop>
  367. <value>agl-hold</value>
  368. </enable>
  369. <input>
  370. <prop>/velocities/vertical-speed-fps</prop>
  371. </input>
  372. <reference>
  373. <prop>/autopilot/internal/target-climb-rate-fps</prop>
  374. </reference>
  375. <output>
  376. <prop>/controls/engines/engine[0]/throttle</prop>
  377. </output>
  378. <config>
  379. <Kp>-1.0</Kp> <!-- proportional gain -->
  380. <beta>1.0</beta> <!-- input value weighing factor -->
  381. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  382. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  383. <!-- unfiltered derivative error -->
  384. <Ti>5.0</Ti> <!-- integrator time -->
  385. <Td>0.00001</Td> <!-- derivator time -->
  386. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  387. <u_max>20.0</u_max> <!-- maximum output clamp -->
  388. </config>
  389. </pid-controller>
  390. <!-- Glideslope hold. -->
  391. <!-- Stage #2 drives the elevator-trim to achieve the desired climb rate. -->
  392. <pid-controller>
  393. <name>Glideslop Hold</name>
  394. <debug>false</debug>
  395. <enable>
  396. <prop>/autopilot/locks/altitude</prop>
  397. <value>gs1-hold</value>
  398. </enable>
  399. <input>
  400. <prop>/velocities/vertical-speed-fps</prop>
  401. </input>
  402. <reference>
  403. <prop>/instrumentation/nav[0]/gs-rate-of-climb</prop>
  404. </reference>
  405. <output>
  406. <prop>/controls/engines/engine[0]/throttle</prop>
  407. </output>
  408. <config>
  409. <Kp>-1.0</Kp> <!-- proportional gain -->
  410. <beta>1.0</beta> <!-- input value weighing factor -->
  411. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  412. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  413. <!-- unfiltered derivative error -->
  414. <Ti>5.0</Ti> <!-- integrator time -->
  415. <Td>0.00001</Td> <!-- derivator time -->
  416. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  417. <u_max>20.0</u_max> <!-- maximum output clamp -->
  418. </config>
  419. </pid-controller>
  420. <!-- vertical speed hold -->
  421. <pid-controller>
  422. <name>Vertical Speed Hold</name>
  423. <debug>false</debug>
  424. <enable>
  425. <prop>/autopilot/locks/altitude</prop>
  426. <value>vertical-speed-hold</value>
  427. </enable>
  428. <input>
  429. <prop>/velocities/vertical-speed-fps</prop>
  430. </input>
  431. <reference>
  432. <prop>/autopilot/settings/vertical-speed-fpm</prop>
  433. <scale>0.01667</scale>
  434. </reference>
  435. <output>
  436. <prop>/controls/engines/engine[0]/throttle</prop>
  437. </output>
  438. <config>
  439. <Kp>-1.0</Kp> <!-- proportional gain -->
  440. <beta>1.0</beta> <!-- input value weighing factor -->
  441. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  442. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  443. <!-- unfiltered derivative error -->
  444. <Ti>5.0</Ti> <!-- integrator time -->
  445. <Td>0.00001</Td> <!-- derivator time -->
  446. <u_min>-20.0</u_min> <!-- minimum output clamp -->
  447. <u_max>20.0</u_max> <!-- maximum output clamp -->
  448. </config>
  449. </pid-controller>
  450. <!-- =============================================================== -->
  451. <!-- Velocity Modes -->
  452. <!-- =============================================================== -->
  453. <!-- Auto throttle -->
  454. <pid-controller>
  455. <name>Auto Throttle (5 sec lookahead)</name>
  456. <debug>false</debug>
  457. <enable>
  458. <prop>/autopilot/locks/speed</prop>
  459. <value>speed-with-throttle</value>
  460. </enable>
  461. <input>
  462. <!-- <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop> -->
  463. <prop>/velocities/airspeed-kt</prop>
  464. </input>
  465. <reference>
  466. <prop>/autopilot/settings/target-speed-kt</prop>
  467. </reference>
  468. <output>
  469. <prop>/controls/flight/fcs/pitch</prop>
  470. <!-- <prop>/controls/engines/engine[1]/throttle</prop>
  471. <prop>/controls/engines/engine[2]/throttle</prop>
  472. <prop>/controls/engines/engine[3]/throttle</prop>
  473. <prop>/controls/engines/engine[4]/throttle</prop>
  474. <prop>/controls/engines/engine[5]/throttle</prop>
  475. <prop>/controls/engines/engine[6]/throttle</prop>
  476. <prop>/controls/engines/engine[7]/throttle</prop>-->
  477. </output>
  478. <config>
  479. <Kp>0.1</Kp> <!-- proportional gain -->
  480. <beta>1.0</beta> <!-- input value weighing factor -->
  481. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  482. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  483. <!-- unfiltered derivative error -->
  484. <Ti>10.0</Ti> <!-- integrator time -->
  485. <Td>0.00001</Td> <!-- derivator time -->
  486. <u_min>0.0</u_min> <!-- minimum output clamp -->
  487. <u_max>1.0</u_max> <!-- maximum output clamp -->
  488. </config>
  489. </pid-controller>
  490. <!-- Hold speed by varying pitch trim (Two stage cascading controller) -->
  491. <pid-controller>
  492. <name>Speed hold (vary pitch trim) Stage #1</name>
  493. <debug>false</debug>
  494. <enable>
  495. <prop>/autopilot/locks/speed</prop>
  496. <value>speed-with-pitch-trim</value>
  497. </enable>
  498. <input>
  499. <prop>/autopilot/internal/lookahead-5-sec-airspeed-kt</prop>
  500. </input>
  501. <reference>
  502. <prop>/autopilot/settings/target-speed-kt</prop>
  503. </reference>
  504. <output>
  505. <prop>/autopilot/settings/target-pitch-deg</prop>
  506. </output>
  507. <config>
  508. <Kp>0.5</Kp> <!-- proportional gain -->
  509. <beta>1.0</beta> <!-- input value weighing factor -->
  510. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  511. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  512. <!-- unfiltered derivative error -->
  513. <Ti>0.1</Ti> <!-- integrator time -->
  514. <Td>0.00001</Td> <!-- derivator time -->
  515. <u_min>-5.0</u_min> <!-- minimum output clamp -->
  516. <u_max>5.0</u_max> <!-- maximum output clamp -->
  517. </config>
  518. </pid-controller>
  519. <pid-controller>
  520. <name>Speed hold (vary pitch trim) Stage #2</name>
  521. <debug>false</debug>
  522. <enable>
  523. <prop>/autopilot/locks/speed</prop>
  524. <value>speed-with-pitch-trim</value>
  525. </enable>
  526. <input>
  527. <prop>/orientation/pitch-deg</prop>
  528. </input>
  529. <reference>
  530. <prop>/autopilot/settings/target-pitch-deg</prop>
  531. </reference>
  532. <output>
  533. <prop>/controls/flight/elevator-trim</prop>
  534. </output>
  535. <config>
  536. <Kp>-10.0</Kp> <!-- proportional gain -->
  537. <beta>1.0</beta> <!-- input value weighing factor -->
  538. <alpha>0.1</alpha> <!-- low pass filter weighing factor -->
  539. <gamma>0.0</gamma> <!-- input value weighing factor for -->
  540. <!-- unfiltered derivative error -->
  541. <Ti>0.5</Ti> <!-- integrator time -->
  542. <Td>0.00001</Td> <!-- derivator time -->
  543. <u_min>-5.0</u_min> <!-- minimum output clamp -->
  544. <u_max>5.0</u_max> <!-- maximum output clamp -->
  545. </config>
  546. </pid-controller>
  547. </PropertyList>