FCU: vs / fpa -- improve display
This commit is contained in:
parent
0c8b70403b
commit
84526a7dfe
3 changed files with 43 additions and 7 deletions
|
@ -1158,6 +1158,7 @@
|
|||
<object-name>vord_led</object-name>
|
||||
<object-name>vord_led.001</object-name>
|
||||
<object-name>vs-text</object-name>
|
||||
<object-name>vs-text-last-2-digits</object-name>
|
||||
<object-name>vs-text-test</object-name>
|
||||
<object-name>wpt_led</object-name>
|
||||
<object-name>wpt_led.001</object-name>
|
||||
|
@ -4393,6 +4394,7 @@
|
|||
<animation>
|
||||
<type>select</type>
|
||||
<object-name>vs-text</object-name>
|
||||
<object-name>vs-text-last-2-digits</object-name>
|
||||
<condition>
|
||||
<and>
|
||||
<not-equals>
|
||||
|
@ -4631,16 +4633,42 @@
|
|||
<name>vs-text</name>
|
||||
<offsets>
|
||||
<x-m>-0.377</x-m>
|
||||
<y-m>0.09043</y-m>
|
||||
<y-m>0.0850</y-m>
|
||||
<z-m>0.50254</z-m>
|
||||
<heading-deg>90</heading-deg>
|
||||
<roll-deg>72.81</roll-deg>
|
||||
</offsets>
|
||||
<alignment>center-center</alignment>
|
||||
<axis-alignment>xy-plane</axis-alignment>
|
||||
<type type="string">number-value</type>
|
||||
<format type="string">%4.0f</format>
|
||||
<property>it-autoflight/input/vs</property>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string">%s</format>
|
||||
<property>it-autoflight/output/vs-fcu-display</property>
|
||||
<truncate>false</truncate>
|
||||
<font type="string">led.txf</font>
|
||||
<draw-text>true</draw-text>
|
||||
<draw-alignment>false</draw-alignment>
|
||||
<draw-boundingbox>false</draw-boundingbox>
|
||||
<character-size>0.008</character-size>
|
||||
<font-resolution>
|
||||
<width type="int">32</width>
|
||||
<height type="int">32</height>
|
||||
</font-resolution>
|
||||
</text>
|
||||
|
||||
<text>
|
||||
<name>vs-text-last-2-digits</name>
|
||||
<offsets>
|
||||
<x-m>-0.377</x-m>
|
||||
<y-m>0.0977</y-m>
|
||||
<z-m>0.5028</z-m>
|
||||
<heading-deg>90</heading-deg>
|
||||
<roll-deg>72.81</roll-deg>
|
||||
</offsets>
|
||||
<alignment>center-center</alignment>
|
||||
<axis-alignment>xy-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<format type="string">oo</format>
|
||||
<property>autopilot/serviceable</property>
|
||||
<truncate>false</truncate>
|
||||
<font type="string">led.txf</font>
|
||||
<draw-text>true</draw-text>
|
||||
|
@ -4657,7 +4685,7 @@
|
|||
<name>fpa-text</name>
|
||||
<offsets>
|
||||
<x-m>-0.377</x-m>
|
||||
<y-m>0.09043</y-m>
|
||||
<y-m>0.0860</y-m>
|
||||
<z-m>0.50254</z-m>
|
||||
<heading-deg>90</heading-deg>
|
||||
<roll-deg>72.81</roll-deg>
|
||||
|
@ -4665,7 +4693,7 @@
|
|||
<alignment>center-center</alignment>
|
||||
<axis-alignment>xy-plane</axis-alignment>
|
||||
<type type="string">number-value</type>
|
||||
<format type="string">%2.1f</format>
|
||||
<format type="string">%+2.1f</format>
|
||||
<property>it-autoflight/input/fpa</property>
|
||||
<truncate>false</truncate>
|
||||
<font type="string">led.txf</font>
|
||||
|
@ -7235,6 +7263,7 @@
|
|||
<object-name>hdg-text</object-name>
|
||||
<object-name>alt-text</object-name>
|
||||
<object-name>vs-text</object-name>
|
||||
<object-name>vs-text-last-2-digits</object-name>
|
||||
<object-name>spd-text-test</object-name>
|
||||
<object-name>hdg-text-test</object-name>
|
||||
<object-name>alt-text-test</object-name>
|
||||
|
|
|
@ -379,6 +379,7 @@ var FCUController = {
|
|||
} else {
|
||||
fmgc.Input.vert.setValue(1);
|
||||
fmgc.Input.vs.setValue(0);
|
||||
fmgc.Custom.Output.vsFCU.setValue(left(sprintf("%+05.0f",0),3));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -413,6 +414,7 @@ var FCUController = {
|
|||
} else {
|
||||
fmgc.Input.vs.setValue(me.vsTemp);
|
||||
}
|
||||
fmgc.Custom.Output.vsFCU.setValue(left(sprintf("%+05.0f",fmgc.Input.vs.getValue()),3));
|
||||
} else if (fmgc.Output.vert.getValue() == 5) {
|
||||
me.fpaTemp = fmgc.Input.fpa.getValue();
|
||||
if (d == 1) {
|
||||
|
|
|
@ -174,6 +174,7 @@ var Custom = {
|
|||
},
|
||||
Output: {
|
||||
fmaPower: props.globals.initNode("/it-autoflight/output/fma-pwr", 0, "BOOL"),
|
||||
vsFCU: props.globals.initNode("/it-autoflight/output/vs-fcu-display", "", "STRING"),
|
||||
},
|
||||
Sound: {
|
||||
athrOff: props.globals.initNode("/it-autoflight/sound/athrsound", 0, "BOOL"),
|
||||
|
@ -196,6 +197,7 @@ var ITAF = {
|
|||
Input.hdg.setValue(360);
|
||||
Input.alt.setValue(10000);
|
||||
Input.vs.setValue(0);
|
||||
Custom.Output.vsFCU.setValue(left(sprintf("%+05.0f",0),3));
|
||||
Input.fpa.setValue(0);
|
||||
Input.lat.setValue(9);
|
||||
Input.vert.setValue(9);
|
||||
|
@ -861,8 +863,11 @@ var ITAF = {
|
|||
Input.alt.setValue(math.clamp(math.round(Internal.altPredicted.getValue(), 100), 0, 50000));
|
||||
Internal.alt.setValue(math.clamp(math.round(Internal.altPredicted.getValue(), 100), 0, 50000));
|
||||
},
|
||||
tempVS: 0,
|
||||
syncVs: func() {
|
||||
Input.vs.setValue(math.clamp(math.round(Internal.vs.getValue(), 100), -6000, 6000));
|
||||
me.tempVS = math.clamp(math.round(Internal.vs.getValue(), 100), -6000, 6000);
|
||||
Input.vs.setValue(me.tempVS);
|
||||
fmgc.Custom.Output.vsFCU.setValue(left(sprintf("%+05.0f",me.tempVS),3));
|
||||
},
|
||||
syncFpa: func() {
|
||||
Input.fpa.setValue(math.clamp(math.round(Internal.fpa.getValue(), 0.1), -9.9, 9.9));
|
||||
|
|
Loading…
Add table
Reference in a new issue