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

Standard names for states, support "taxi".

parent 7c3caba2
......@@ -19,7 +19,7 @@ ________
Добавьте следующий адрес в список "Addons/Aircraft hangar
locations" экрана запуска.
https://gitlab.com/mdanil/Tu-144_hangar/raw/master/catalog.xml
https://gitlab.com/mdanil/Tu-144_hangar/raw/master/catalog.xml
После этого самолёт должен появиться в списке доступных для
установки. Нажиме "Install".
......@@ -27,9 +27,9 @@ https://gitlab.com/mdanil/Tu-144_hangar/raw/master/catalog.xml
1.б. Выпущенная версия. Используйте в том случае, если собираетесь
наблюдать полёт со стороны.
Скачайте и разверните следущий архив.
Скачайте и разверните один из архивов по адресу:
https://gitlab.com/mdanil/Tu-144/repository/archive.tar.bz2?ref=20180521-230856
https://gitlab.com/mdanil/Tu-144/tags
Переименуйте директорию в "Tu-144" и поместите её в путь
установки самолётов FlightGear.
......
# WARNING
#
# This only sets the state of already running aircraft.
# It does NOT follow any procedures and MUST NOT be used
# as documentation.
# TODO When property tree has settled, most of this stuff is better in -set.xml.
setlistener("/sim/signals/fdm-initialized", func(p) {
if(p.getValue() == 0){
return;
}
Tu144.SetFuel(26000.0, 0.0, 6000.0, 0.0);
setprop("/fdm/jsbsim/crew/copilot/adjust-trim", 1);
for(var i = 1; i < 5; i += 1){
setprop("/fdm/jsbsim/systems/elec/panel/switch/DC27-bat[" ~ i ~"]", 1);
}
#setprop("/fdm/jsbsim/systems/elec/panel/switch/GPU", 1);
setprop("/fdm/jsbsim/fcs/panel/switch/canard-power", 1);
setprop("/fdm/jsbsim/fcs/panel/switch/cone-power", 1);
setprop("/controls/flight/wing-sweep", 1.0);
setprop("/controls/flight/flaps", 1);
setprop("/controls/gear/brake-left", 1);
setprop("/controls/gear/brake-right", 1);
setprop("/fdm/jsbsim/gear/panel/switch/start-brake", 1);
setprop("/controls/gear/brake-parking", 0);
setprop("/fdm/jsbsim/systems/lighting/panel/switch/collision", 1);
setprop("/fdm/jsbsim/systems/lighting/panel/switch/front_1", 1);
setprop("/fdm/jsbsim/systems/comm/SOM/panel/switch/SO-63", 1);
setprop("/fdm/jsbsim/fcs/NPK/panel/PIK/switch/mode", 1);
Tu144.PrepareInstruments();
setprop("/fdm/jsbsim/propulsion/fire/panel/switch/master", 1);
for(var i = 0; i < 4; i += 1){
setprop("/fdm/jsbsim/propulsion/fire/panel/switch/engine-valve[" ~ i ~ "]", 1);
setprop("/fdm/jsbsim/propulsion/fire/panel/switch/KSA-valve[" ~ i ~ "]", 1);
setprop("/fdm/jsbsim/propulsion/engine[" ~ i ~ "]/panel/lever/cutoff", 0);
setprop("/fdm/jsbsim/propulsion/fuel/panel/switch/boost-pump_1[" ~ i ~ "]", 1);
}
setprop("/fdm/jsbsim/propulsion/fuel/panel/switch/autoselect", 1);
setprop("/fdm/jsbsim/propulsion/fuel/meter/init/d-1", 0);
setprop("/fdm/jsbsim/propulsion/fuel/meter/init/d0", 2);
setprop("/fdm/jsbsim/propulsion/fuel/meter/init/d1", 3);
setprop("/fdm/jsbsim/propulsion/fuel/panel/switch/meter", 1);
setprop("/fdm/jsbsim/fcs/NPK/panel/TsUNP/switch/AP_", getprop("/fdm/jsbsim/fcs/NPK/Orbita/flightplan/AP/count"));
settimer(func {
setprop("/fdm/jsbsim/fcs/NPK/panel/PIK/switch/mode", 2);
setprop("/sim/speed-up", 4);
}, 1.0);
for(var i = 1; i < 5; i += 1){
setprop("/fdm/jsbsim/systems/elec/panel/switch/AC200-gen[" ~ i ~ "]", 1);
}
for(var i = 0; i < 4; i += 1){
setprop("/fdm/jsbsim/propulsion/air/panel/switch/engine[" ~ i ~ "]", 1);
}
settimer(func {
setprop("/fdm/jsbsim/systems/elec/panel/switch/GPU", 0);
setprop("/systems/ground-supply/dialog/wheel-chocks", 0);
setprop("/systems/ground-supply/dialog/electrical", 0);
setprop("/systems/ground-supply/dialog/air", 0);
setprop("/systems/ground-supply/dialog/refill", 0);
setprop("/fdm/jsbsim/fcs/NPK/panel/PIK/switch/mode", 3);
setprop("/fdm/jsbsim/fcs/NPK/panel/TsUNP/switch/integration", 1);
setprop("/fdm/jsbsim/systems/comm/RI/panel/switch/power", 1);
setprop("/fdm/jsbsim/crew/copilot/adjust-trim", 0);
setprop("/controls/gear/brake-left", 0);
setprop("/controls/gear/brake-right", 0);
setprop("/sim/speed-up", 1);
}, 4.0);
});
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList include="Tu-144D-set.xml">
<fdm>
<jsbsim>
<simulation>
<settings>
<hotstart-avionics type="int">1</hotstart-avionics>
<hotstart-hydr type="int">1</hotstart-hydr>
<hotstart-APU type="int">1</hotstart-APU>
</settings>
</simulation>
</jsbsim>
</fdm>
<engines>
<engine n="4">
<running type="bool">true</running>
</engine>
</engines>
<sim>
<variant-of>Tu-144D</variant-of>
<description>Tu-144D mod. 09 (1984) ready for fueling</description>
<long-description>Initial fuel: 9000 kg. The navigation and orientation system is prepared, APU is running.</long-description>
<ru>
<description>Ту-144Д серии 09 (1984г.) перед заправкой</description>
<long-description>Остаток топлива: 9 т. Навигацинно-пилотажный комплекс подготовлен, ВСУ работает.</long-description>
</ru>
</sim>
<nasal>
<Tu144-fueling>
<file>Nasal/Tu-144-fueling.nas</file>
</Tu144-fueling>
</nasal>
</PropertyList>
......@@ -485,8 +485,13 @@
<fg-ver_min type="string">2017.2.1</fg-ver_min>
<fg-ver_max type="string">2018.99</fg-ver_max>
<state include="states/apu-overlay.xml" n="0"/>
<state include="states/takeoff-overlay.xml" n="1"/>
<state n="0">
<name>parking</name>
<overlay/>
</state>
<state include="states/gate-overlay.xml" n="1"/>
<state include="states/taxi-overlay.xml" n="2"/>
<state include="states/take-off-overlay.xml" n="3"/>
<dimensions>
<radius-m type="double">41.0</radius-m>
......
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList include="Tu-144D-set.xml">
<fdm>
<jsbsim>
<simulation>
<settings>
<hotstart-avionics type="int">1</hotstart-avionics>
<hotstart-hydr type="int">1</hotstart-hydr>
<hotstart-engines type="int">1</hotstart-engines>
</settings>
</simulation>
</jsbsim>
</fdm>
<engines>
<engine n="0">
<running type="bool">true</running>
</engine>
<engine n="1">
<running type="bool">true</running>
</engine>
<engine n="2">
<running type="bool">true</running>
</engine>
<engine n="3">
<running type="bool">true</running>
</engine>
</engines>
<sim>
<variant-of>Tu-144D</variant-of>
<description>Tu-144D mod. 09 (1984) ready for takeoff</description>
<long-description>Fuel: 30000 kg. Start brake engaged.</long-description>
<ru>
<description>Ту-144Д серии 09 (1984г.) перед взлётом</description>
<long-description>Остаток топлива: 30 тонн. На стартовом тормозе.</long-description>
</ru>
</sim>
<nasal>
<Tu144-takeoff>
<file>Nasal/Tu-144-takeoff.nas</file>
</Tu144-takeoff>
</nasal>
</PropertyList>
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!-- FGBUG Command line won't accept long names.
<name type="string">APU running</name>
-->
<name type="string">Fueling</name>
<name type="string">gate</name>
<description>At the gate. The instruments are prepared, APU is running. Fuel: 9000 kg.</description>
<ru>
<description>Заправка/загрузка. Приборы подготовлены, ВСУ работает. Остаток топлива: 9 т.</description>
</ru>
<overlay>
<fdm>
......@@ -25,10 +32,12 @@
</engines>
<nasal>
<state-fueling>
<file>Nasal/state-apu.nas</file>
</state-fueling>
<state>
<file>Nasal/state-gate.nas</file>
</state>
</nasal>
</overlay>
</PropertyList>
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<name type="string">take-off</name>
<description>Start brake engaged. Fuel: 30000 kg.</description>
<ru>
<description>Стартовый тормоз включен, остаток топлива: 30 тонн.</description>
</ru>
<overlay>
<fdm>
<jsbsim>
<simulation>
<settings>
<hotstart-avionics type="int">1</hotstart-avionics>
<hotstart-hydr type="int">1</hotstart-hydr>
<hotstart-engines type="int">1</hotstart-engines>
</settings>
</simulation>
</jsbsim>
</fdm>
<engines>
<engine n="0">
<running type="bool">true</running>
</engine>
<engine n="1">
<running type="bool">true</running>
</engine>
<engine n="2">
<running type="bool">true</running>
</engine>
<engine n="3">
<running type="bool">true</running>
</engine>
</engines>
<nasal>
<state>
<file>Nasal/state-take-off.nas</file>
</state>
</nasal>
</overlay>
</PropertyList>
<?xml version="1.0" encoding="UTF-8"?>
<PropertyList>
<!-- FGBUG Command line won't accept long names.
<name type="string">Takeoff (fuel: 30000 kg)</name>
-->
<name type="string">Takeoff</name>
<name type="string">taxi</name>
<description>Fuel: 32000 kg.</description>
<ru>
<description>Остаток топлива: 32 тонны.</description>
</ru>
<overlay>
<fdm>
......@@ -34,10 +42,12 @@
</engines>
<nasal>
<state-takeoff>
<file>Nasal/state-takeoff.nas</file>
</state-takeoff>
<state>
<file>Nasal/state-taxi.nas</file>
</state>
</nasal>
</overlay>
</PropertyList>
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