A3XX: Fix FMGC NAV mode bugs
This commit is contained in:
parent
edc4f9b1d6
commit
a138761dd2
4 changed files with 7 additions and 4 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
##############################################
|
||||
-->
|
||||
|
||||
<system name="fmgc">
|
||||
<system name="fmgs">
|
||||
<property value="0">/FMGC/internal/greendot-kts</property>
|
||||
|
||||
<channel name="GreenDot">
|
||||
|
|
|
@ -1 +1 @@
|
|||
4071
|
||||
4072
|
Reference in a new issue