1
0
Fork 0

FMGC: Sync with itaf_core

This commit is contained in:
Josh Davidson 2022-09-28 19:32:59 -04:00
parent 7b7943f3ef
commit ca70febb5d
2 changed files with 27 additions and 34 deletions

View file

@ -124,6 +124,7 @@ var Internal = {
fpa: props.globals.initNode("/it-autoflight/internal/fpa", 0, "DOUBLE"),
hdgErrorDeg: props.globals.initNode("/it-autoflight/internal/heading-error-deg", 0, "DOUBLE"),
hdgPredicted: props.globals.initNode("/it-autoflight/internal/heading-predicted", 0, "DOUBLE"),
hdgTrk: props.globals.initNode("/it-autoflight/internal/heading", 0, "DOUBLE"),
lnavAdvanceNm: props.globals.initNode("/it-autoflight/internal/lnav-advance-nm", 0, "DOUBLE"),
minVs: props.globals.initNode("/it-autoflight/internal/min-vs", -500, "INT"),
maxVs: props.globals.initNode("/it-autoflight/internal/max-vs", 500, "INT"),

View file

@ -486,6 +486,23 @@
<output>/instrumentation/pfd/track-deg</output>
</filter>
<filter>
<name>Heading/Track Deg</name>
<type>gain</type>
<gain>1.0</gain>
<input>
<condition>
<equals>
<property>/it-autoflight/input/trk</property>
<value>1</value>
</equals>
</condition>
<property>/it-autoflight/internal/track-deg</property>
</input>
<input>/it-autoflight/internal/heading-deg</input>
<output>/it-autoflight/internal/heading</output>
</filter>
<filter>
<name>Drift Angle</name>
<type>gain</type>
@ -497,10 +514,10 @@
<value>1</value>
</less-than>
</condition>
<property>/orientation/heading-magnetic-deg</property>
<property>/orientation/heading-deg</property>
</input>
<input>/orientation/track-magnetic-deg</input>
<reference>/orientation/heading-magnetic-deg</reference>
<input>/orientation/track-deg</input>
<reference>/orientation/heading-deg</reference>
<output>/it-autoflight/internal/drift-angle-deg</output>
<period>
<min>-180</min>
@ -515,7 +532,7 @@
<expression>
<table>
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>50</dep></entry>
<entry><ind>140</ind><dep>40</dep></entry>
<entry><ind>360</ind><dep>20</dep></entry>
</table>
</expression>
@ -532,39 +549,14 @@
<gain>1.0</gain>
<input>
<condition>
<and>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/trk</property>
<value>0</value>
</equals>
</and>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
</condition>
<property>/it-autoflight/input/hdg</property>
<offset>
<property>/it-autoflight/internal/heading-deg</property>
<scale>-1.0</scale>
</offset>
</input>
<input>
<condition>
<and>
<equals>
<property>/it-autoflight/output/lat</property>
<value>0</value>
</equals>
<equals>
<property>/it-autoflight/input/trk</property>
<value>1</value>
</equals>
</and>
</condition>
<property>/it-autoflight/input/hdg</property>
<offset>
<property>/it-autoflight/internal/track-deg</property>
<property>/it-autoflight/internal/heading</property>
<scale>-1.0</scale>
</offset>
</input>