A3XX: Fix FMGC NAV mode bugs

This commit is contained in:
Joshua Davidson 2017-12-16 20:47:53 -05:00
parent edc4f9b1d6
commit a138761dd2
4 changed files with 7 additions and 4 deletions

View file

@ -112,7 +112,7 @@
</text>
<text>
<halign>left</halign>
<label>4) Contact "Wecsje" or "it0uchpods" on the FlightGear Forums.</label>
<label>4) Open a topic describing the situation in the FlightGear Forums.</label>
</text>
</group>

View file

@ -579,9 +579,12 @@ var ap_various = func {
R = radius/math.sin(delta_angle_rad);
dist_coeff = delta_angle * -0.011111 + 2;
if (dist_coeff < 1) {
ist_coeff = 1;
dist_coeff = 1;
}
turn_dist = math.cos(delta_angle_rad) * R * dist_coeff / 1852;
if (getprop("/gear/gear[0]/wow") == 1 and turn_dist < 1) {
turn_dist = 1;
}
setprop("/it-autoflight/internal/lnav-advance-nm", turn_dist);
if (getprop("/sim/time/elapsed-sec")-getprop("/autopilot/internal/wp-change-time") > 60) {
setprop("/autopilot/internal/wp-change-check-period", time);

View file

@ -6,7 +6,7 @@
##############################################
-->
<system name="fmgc">
<system name="fmgs">
<property value="0">/FMGC/internal/greendot-kts</property>
<channel name="GreenDot">

View file

@ -1 +1 @@
4071
4072