Fixes to altitude and AGL hold modes.
This commit is contained in:
parent
f2c9d6cbf0
commit
92f12971c1
1 changed files with 10 additions and 7 deletions
|
@ -318,13 +318,13 @@
|
||||||
<prop>/autopilot/internal/target-climb-rate-fps</prop>
|
<prop>/autopilot/internal/target-climb-rate-fps</prop>
|
||||||
</output>
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>2.0</Kp> <!-- proportional gain -->
|
<Kp>1.0</Kp> <!-- proportional gain -->
|
||||||
<beta>1.0</beta> <!-- input value weighing factor -->
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
||||||
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
||||||
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
||||||
<!-- unfiltered derivative error -->
|
<!-- unfiltered derivative error -->
|
||||||
<Ti>1000.0</Ti> <!-- integrator time -->
|
<Ti>25.0</Ti> <!-- integrator time -->
|
||||||
<Td>0.00001</Td> <!-- derivator time -->
|
<Td>0.000000001</Td> <!-- derivator time -->
|
||||||
<u_min>-16.67</u_min> <!-- minimum output clamp -->
|
<u_min>-16.67</u_min> <!-- minimum output clamp -->
|
||||||
<u_max>8.33</u_max> <!-- maximum output clamp -->
|
<u_max>8.33</u_max> <!-- maximum output clamp -->
|
||||||
</config>
|
</config>
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
<enable>
|
<enable>
|
||||||
<prop>/autopilot/locks/altitude</prop>
|
<prop>/autopilot/locks/altitude</prop>
|
||||||
<value>terrain-follow</value>
|
<value>agl-hold</value>
|
||||||
</enable>
|
</enable>
|
||||||
<input>
|
<input>
|
||||||
<prop>/position/altitude-agl-ft</prop>
|
<prop>/position/altitude-agl-ft</prop>
|
||||||
|
@ -377,14 +377,17 @@
|
||||||
<reference>
|
<reference>
|
||||||
<prop>/autopilot/settings/target-agl-ft</prop>
|
<prop>/autopilot/settings/target-agl-ft</prop>
|
||||||
</reference>
|
</reference>
|
||||||
|
<output>
|
||||||
|
<prop>/autopilot/internal/target-climb-rate-fps</prop>
|
||||||
|
</output>
|
||||||
<config>
|
<config>
|
||||||
<Kp>1.0</Kp> <!-- proportional gain -->
|
<Kp>1.0</Kp> <!-- proportional gain -->
|
||||||
<beta>1.0</beta> <!-- input value weighing factor -->
|
<beta>1.0</beta> <!-- input value weighing factor -->
|
||||||
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
<alpha>0.1</alpha> <!-- low pass filter weighing factor -->
|
||||||
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
<gamma>0.0</gamma> <!-- input value weighing factor for -->
|
||||||
<!-- unfiltered derivative error -->
|
<!-- unfiltered derivative error -->
|
||||||
<Ti>10000.0</Ti> <!-- integrator time -->
|
<Ti>25.0</Ti> <!-- integrator time -->
|
||||||
<Td>0.00001</Td> <!-- derivator time -->
|
<Td>0.000000001</Td> <!-- derivator time -->
|
||||||
<u_min>-16.67</u_min> <!-- minimum output clamp -->
|
<u_min>-16.67</u_min> <!-- minimum output clamp -->
|
||||||
<u_max>8.33</u_max> <!-- maximum output clamp -->
|
<u_max>8.33</u_max> <!-- maximum output clamp -->
|
||||||
</config>
|
</config>
|
||||||
|
@ -396,7 +399,7 @@
|
||||||
<debug>false</debug>
|
<debug>false</debug>
|
||||||
<enable>
|
<enable>
|
||||||
<prop>/autopilot/locks/altitude</prop>
|
<prop>/autopilot/locks/altitude</prop>
|
||||||
<value>terrain-follow</value>
|
<value>agl-hold</value>
|
||||||
</enable>
|
</enable>
|
||||||
<input>
|
<input>
|
||||||
<prop>/velocities/vertical-speed-fps</prop>
|
<prop>/velocities/vertical-speed-fps</prop>
|
||||||
|
|
Loading…
Reference in a new issue