A3XX: Improve AUTOLAND

This commit is contained in:
Joshua Davidson 2017-10-12 16:29:15 -04:00
parent 288e59b7cd
commit e067935cc1
4 changed files with 40 additions and 10 deletions

View file

@ -398,6 +398,9 @@
<kp-pitch>0.035</kp-pitch>
<kp-rudder>-0.05</kp-rudder>
</autoland>
<rollout>
<kp-rudder>-0.04</kp-rudder>
</rollout>
</config>
<output>
<ap1>0</ap1>

View file

@ -506,7 +506,7 @@ setlistener("/modes/pfd/fma/ap-mode", func {
setprop("/modes/pfd/fma/ap-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/ap-mode-box", 0);
}, 5);
}, 10);
}
});
@ -515,7 +515,7 @@ setlistener("/modes/pfd/fma/fd-mode", func {
setprop("/modes/pfd/fma/fd-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/fd-mode-box", 0);
}, 5);
}, 10);
}
});
@ -528,7 +528,7 @@ setlistener("/modes/pfd/fma/at-mode", func {
setprop("/modes/pfd/fma/athr-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/athr-mode-box", 0);
}, 5);
}, 10);
}
});
@ -539,7 +539,7 @@ setlistener("/modes/pfd/fma/throttle-mode", func {
setprop("/modes/pfd/fma/throttle-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/throttle-mode-box", 0);
}, 5);
}, 10);
}
});
@ -549,7 +549,7 @@ setlistener("/modes/pfd/fma/roll-mode", func {
setprop("/modes/pfd/fma/roll-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/roll-mode-box", 0);
}, 5);
}, 10);
}
});
@ -559,7 +559,7 @@ setlistener("/modes/pfd/fma/pitch-mode", func {
setprop("/modes/pfd/fma/pitch-mode-box", 1);
settimer(func {
setprop("/modes/pfd/fma/pitch-mode-box", 0);
}, 5);
}, 10);
}
});
@ -569,7 +569,7 @@ setlistener("/modes/pfd/fma/roll-mode-armed", func {
setprop("/modes/pfd/fma/roll-mode-armed-box", 1);
settimer(func {
setprop("/modes/pfd/fma/roll-mode-armed-box", 0);
}, 5);
}, 10);
}
});
@ -579,7 +579,7 @@ setlistener("/modes/pfd/fma/pitch-mode-armed", func {
setprop("/modes/pfd/fma/pitch-mode-armed-box", 1);
settimer(func {
setprop("/modes/pfd/fma/pitch-mode-armed-box", 0);
}, 5);
}, 10);
}
});
@ -589,6 +589,6 @@ setlistener("/modes/pfd/fma/pitch-mode2-armed", func {
setprop("/modes/pfd/fma/pitch-mode2-armed-box", 1);
settimer(func {
setprop("/modes/pfd/fma/pitch-mode2-armed-box", 0);
}, 5);
}, 10);
}
});

View file

@ -288,8 +288,35 @@
<output>/it-autoflight/internal/rudder-cmd</output>
<config>
<Kp>
<condition>
<and>
<equals>
<property>/gear/gear[1]/wow</property>
<value>0</value>
</equals>
<equals>
<property>/gear/gear[2]/wow</property>
<value>0</value>
</equals>
</and>
</condition>
<property>/it-autoflight/config/autoland/kp-rudder</property>
</Kp>
<Kp>
<condition>
<or>
<equals>
<property>/gear/gear[1]/wow</property>
<value>1</value>
</equals>
<equals>
<property>/gear/gear[2]/wow</property>
<value>1</value>
</equals>
</or>
</condition>
<property>/it-autoflight/config/rollout/kp-rudder</property>
</Kp>
<Ki>0</Ki>
</config>
<min>-0.15</min>

View file

@ -1 +1 @@
2113
2114