Commit bf0a7f72 authored by Михаил Данилов's avatar Михаил Данилов 💬

ПЗВЭ: сохранение высоты эшелона.

parent 66525ae4
......@@ -4279,7 +4279,7 @@
<animation>
<type>knob</type>
<object-name>PZVE k h</object-name>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/pot/ones</property>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H</property>
<factor>10.0</factor>
<axis>
<x>-1.0</x>
......@@ -4294,9 +4294,11 @@
<action>
<binding>
<command>property-adjust</command>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/pot/ones</property>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H</property>
<factor>10</factor>
<wrap>0</wrap>
<min>0</min>
<max>99999</max>
<wrap>1</wrap>
</binding>
</action>
</animation>
......@@ -4356,17 +4358,14 @@
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/button/descend</property>
<value>1</value>
<command>nasal</command>
<script>
if(getprop("fdm/jsbsim/fcs/NPK/instr/PZVE/motor-ok")){
var H = math.mod(getprop("fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H") - 1000, 100000);
setprop("fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H", H);
}
</script>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/button/descend</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>
......@@ -4390,17 +4389,14 @@
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/button/climb</property>
<value>1</value>
<command>nasal</command>
<script>
if(getprop("fdm/jsbsim/fcs/NPK/instr/PZVE/motor-ok")){
var H = math.mod(getprop("fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H") + 1000, 100000);
setprop("fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H", H);
}
</script>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/fcs/NPK/instr/PZVE/button/climb</property>
<value>0</value>
</binding>
</mod-up>
</action>
</animation>
......
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!--
UUEE (Moscow, Sheremetyevo)
EDDF (Frankfurt am Main)
AR BG KERAX
18000 m / FL590
2029 km
Load 15000 kg
Fuel 45000 kg
-->
<!--
UUEE (Moscow, Sheremetyevo) - EDDF (Frankfurt am Main)
-->
<PPM>
<count type="int">6</count>
<count type="int">3</count>
<!-- EDDF TRANSITION TO FINAL -->
<PPM n="6">
<PPM n="3">
<!-- KERAX -->
<phi-deg type="float">50.475000</phi-deg>
<lam-deg type="float">009.581945</lam-deg>
</PPM>
<!-- ROUTE -->
<PPM n="5">
<!-- DIDUM -->
<phi-deg type="float">52.182778</phi-deg>
<lam-deg type="float">014.721111</lam-deg>
</PPM>
<PPM n="4">
<!-- MRA -->
<phi-deg type="float">53.78490600</phi-deg>
<lam-deg type="float">021.13284400</lam-deg>
</PPM>
<PPM n="3">
<!-- LAVAR -->
<phi-deg type="float">54.691389</phi-deg>
<lam-deg type="float">025.736667</lam-deg>
</PPM>
<!-- UUEE RTE BG 1E -->
<PPM n="2">
......@@ -58,9 +49,9 @@
<AP>
<count type="int">7</count>
<count type="int">2</count>
<AP n="7">
<AP n="2">
<!-- EDDF (Frankfurt am Main) -->
<phi-deg type="float">50.03</phi-deg>
<lam-deg type="float">008.54</lam-deg>
......@@ -68,46 +59,6 @@
<psi-deg type="float" n="1">70.0</psi-deg>
</AP>
<AP n="6">
<!-- EDDP (Leipzig-Halle) -->
<phi-deg type="float">51.42</phi-deg>
<lam-deg type="float">012.24</lam-deg>
<psi-deg type="float" n="0">256.0</psi-deg>
<psi-deg type="float" n="1">86.0</psi-deg>
</AP>
<AP n="5">
<!-- EDDT (Berlin Tegel) -->
<phi-deg type="float">52.56</phi-deg>
<lam-deg type="float">013.29</lam-deg>
<psi-deg type="float" n="0">261.0</psi-deg>
<psi-deg type="float" n="1">81.0</psi-deg>
</AP>
<AP n="4">
<!-- EPBY (Bydgoszoz Szwederowo) -->
<phi-deg type="float">53.10</phi-deg>
<lam-deg type="float">017.97</lam-deg>
<psi-deg type="float" n="0">262.0</psi-deg>
<psi-deg type="float" n="1">82.0</psi-deg>
</AP>
<AP n="3">
<!-- EPSY (Szymany) -->
<phi-deg type="float">53.48</phi-deg>
<lam-deg type="float">020.94</lam-deg>
<psi-deg type="float" n="0">198.0</psi-deg>
<psi-deg type="float" n="1">18.0</psi-deg>
</AP>
<AP n="2">
<!-- EYVI (Vilnius) -->
<phi-deg type="float">54.63</phi-deg>
<lam-deg type="float">025.29</lam-deg>
<psi-deg type="float" n="0">22.0</psi-deg>
<psi-deg type="float" n="1">202.0</psi-deg>
</AP>
<AP n="1">
<!-- UUEE (Moscow, Sheremetyevo) -->
<phi-deg type="float">55.97</phi-deg>
......
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!-- Bool group 0: 0..30. Animations. -->
<!-- Bool blocks defined in "src/MultiPlayer/multiplaymgr.cxx" of FG. -->
<!-- Block 0: 0..30. Animations. -->
<logic>
<!-- FGBUG bool[0] not sync over MP, should be fixed by 2018.2.
......@@ -144,7 +146,10 @@
</logic>
<!-- Bool group 2: 61..90. Damage. -->
<!-- Block 1: 31..60, 91. Unused. -->
<!-- Block 2: 61..90, 92. Damage. -->
<logic>
<output type="bool">
......
......@@ -63,6 +63,9 @@ will be made, to make this easier.
самолёт в порядке, указанном в файле "NPK-144.TXT".
2. В случае противоречия инструкций, верным считать документ,
находящийся выше в данном списке.
3. Модель кабины находится в разработке, поэтому некоторые панели
могут не иметь надписей. В связи с этим изучите также фотографии
кабины настоящего самолёта.
В директории "Extras/" находятся следующие вспомогательные средства.
......
......@@ -17,9 +17,8 @@
<property value="5.0">fcs/NPK/ABSU/STU/pitch/VE/tuning/F3-max</property>
<property>fcs/NPK/instr/PZVE/pot/ones</property>
<property>fcs/NPK/instr/PZVE/button/descend</property>
<property>fcs/NPK/instr/PZVE/button/climb</property>
<!-- 0..99999 -->
<property value="18000.0">fcs/NPK/instr/PZVE/pot/H</property>
<!-- 0: m, 1: ft -->
<property>fcs/NPK/instr/PZVE/switch/units</property>
......@@ -41,82 +40,25 @@
<property>fcs/NPK/Orbita/func/leg/H/deltaH-ok</property>
<property>fcs/NPK/ABSU/status/on</property>
<channel name="PZVE" execrate="16">
<!-- Пульт-задатчик высоты эшелона ПЗВЭ (название придумано) -->
<switch name="fcs/NPK/instr/PZVE/hundreds">
<default value="fcs/NPK/instr/PZVE/hundreds"/>
<test value="fcs/NPK/instr/PZVE/hundreds-decr">
fcs/NPK/instr/PZVE/button/descend NE 0
</test>
<test value="fcs/NPK/instr/PZVE/hundreds-incr">
fcs/NPK/instr/PZVE/button/climb NE 0
</test>
</switch>
<switch name="fcs/NPK/instr/PZVE/hundreds-latch">
<default value="fcs/NPK/instr/PZVE/hundreds"/>
<test logic="OR" value="fcs/NPK/instr/PZVE/hundreds-latch">
fcs/NPK/instr/PZVE/button/climb NE 0
fcs/NPK/instr/PZVE/button/descend NE 0
</test>
<switch name="fcs/NPK/instr/PZVE/H">
<default value="fcs/NPK/instr/PZVE/pot/H"/>
<clipto>
<min>0.0</min>
<max>99999.0</max>
</clipto>
</switch>
<summer name="fcs/NPK/instr/PZVE/hundreds-decr">
<input>fcs/NPK/instr/PZVE/hundreds-latch</input>
<bias>-1</bias>
</summer>
<summer name="fcs/NPK/instr/PZVE/hundreds-incr">
<input>fcs/NPK/instr/PZVE/hundreds-latch</input>
<bias>1</bias>
</summer>
<fcs_function name="fcs/NPK/instr/PZVE/H">
<function>
<sum>
<!-- default value -->
<v>16500.0</v>
<p>fcs/NPK/instr/PZVE/pot/ones</p>
<product>
<p>fcs/NPK/instr/PZVE/hundreds</p>
<v>500.0</v>
</product>
</sum>
</function>
</fcs_function>
<!-- Sawtooth: 0..100000 -->
<fcs_function name="fcs/NPK/instr/PZVE/H_">
<function>
<sum>
<product>
<fraction>
<product>
<!-- input -->
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.00001</v><!-- = 1/100000 -->
</product>
</fraction>
<v>100000.0</v>
</product>
<product>
<lt>
<!-- input -->
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.0</v>
</lt>
<v>100000.0</v>
</product>
</sum>
</function>
</fcs_function>
<fcs_function name="fcs/NPK/instr/PZVE/counter/H[0]">
<function>
<integer>
<mod>
<p>fcs/NPK/instr/PZVE/H_</p>
<p>fcs/NPK/instr/PZVE/H</p>
<v>10.0</v>
</mod>
</integer>
......@@ -128,7 +70,7 @@
<integer>
<mod>
<product>
<p>fcs/NPK/instr/PZVE/H_</p>
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.1</v>
</product>
<v>10.0</v>
......@@ -142,7 +84,7 @@
<integer>
<mod>
<product>
<p>fcs/NPK/instr/PZVE/H_</p>
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.01</v>
</product>
<v>10.0</v>
......@@ -156,7 +98,7 @@
<integer>
<mod>
<product>
<p>fcs/NPK/instr/PZVE/H_</p>
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.001</v>
</product>
<v>10.0</v>
......@@ -170,7 +112,7 @@
<integer>
<mod>
<product>
<p>fcs/NPK/instr/PZVE/H_</p>
<p>fcs/NPK/instr/PZVE/H</p>
<v>0.0001</v>
</product>
<v>10.0</v>
......@@ -187,10 +129,14 @@
</switch>
<pure_gain name="fcs/NPK/instr/PZVE/H-m">
<input>fcs/NPK/instr/PZVE/H_</input>
<input>fcs/NPK/instr/PZVE/H</input>
<gain>fcs/NPK/instr/PZVE/multiplier</gain>
</pure_gain>
<switch name="fcs/NPK/instr/PZVE/motor-ok">
<default value="fcs/NPK/ABSU/status/on"/>
</switch>
</channel>
......
......@@ -875,6 +875,8 @@
<path>/fdm/jsbsim/fcs/NPK/instr/SK[0]/switch/to</path>
<path>/fdm/jsbsim/fcs/NPK/instr/SK[1]/pot/radial-deg</path>
<path>/fdm/jsbsim/fcs/NPK/instr/SK[1]/switch/to</path>
<path>/fdm/jsbsim/fcs/NPK/instr/PZVE/pot/H</path>
<path>/fdm/jsbsim/fcs/NPK/instr/PZVE/switch/units</path>
<path>/fdm/jsbsim/fcs/NPK/panel/pot/runway-hdg-deg</path>
<path>/fdm/jsbsim/fcs/NPK/panel/switch/runway-reciprocal</path>
<path>/fdm/jsbsim/fcs/NPK/panel/SDK[0]/switch/VOR-DME-MHz</path>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment