Цифровой расходомер РТ-31.

parent b55e35bf
......@@ -3833,7 +3833,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 0 l d0</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[0]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[0]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3854,7 +3854,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 0 l d1</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[0]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[0]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3875,7 +3875,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 0 l c</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[0]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/c[0]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3896,7 +3896,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 1 l d0</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[1]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[1]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3917,7 +3917,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 1 l d1</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[1]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[1]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3938,7 +3938,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 1 l c</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[1]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/c[1]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3959,7 +3959,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 2 l d0</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[2]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[2]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -3980,7 +3980,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 2 l d1</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[2]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[2]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4001,7 +4001,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 2 l c</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[2]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/c[2]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4022,7 +4022,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 3 l d0</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[3]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[3]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4043,7 +4043,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 3 l d1</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[3]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[3]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4064,7 +4064,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 3 l c</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[3]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/c[3]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4085,7 +4085,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 4 l d0</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[4]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[4]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4106,7 +4106,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 4 l d1</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[4]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[4]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4127,7 +4127,7 @@
<animation>
<type>textranslate</type>
<object-name>6LO1I 4 l d2</object-name>
<property>instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d2[4]</property>
<property>instrumentation/jsbsim/systems/instr/RT/panel/crt/d2[4]</property>
<axis>
<x>0.0</x>
<y>1.0</y>
......@@ -4169,7 +4169,7 @@
<animation>
<type>knob</type>
<object-name>RT-31 s on</object-name>
<property>fdm/jsbsim/propulsion/fuel/panel/switch/RT</property>
<property>fdm/jsbsim/systems/instr/RT/panel/switch/run</property>
<factor>56.0</factor>
<min-deg>0.0</min-deg>
<max-deg>56.0</max-deg>
......@@ -4186,7 +4186,7 @@
<action>
<binding>
<command>property-adjust</command>
<property>fdm/jsbsim/propulsion/fuel/panel/switch/RT</property>
<property>fdm/jsbsim/systems/instr/RT/panel/switch/run</property>
<factor>1</factor>
<min>0.0</min>
<max>1.0</max>
......@@ -4204,13 +4204,13 @@
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d-1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[0]</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d-1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[0]</property>
<value>0</value>
</binding>
</mod-up>
......@@ -4219,7 +4219,7 @@
<animation>
<type>translate</type>
<object-name>RT-31 b 0</object-name>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d-1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[0]</property>
<factor>0.001</factor>
<axis>
<x>0.0</x>
......@@ -4237,13 +4237,13 @@
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d0</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[1]</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d0</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[1]</property>
<value>0</value>
</binding>
</mod-up>
......@@ -4252,7 +4252,7 @@
<animation>
<type>translate</type>
<object-name>RT-31 b 1</object-name>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d0</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[1]</property>
<factor>0.001</factor>
<axis>
<x>0.0</x>
......@@ -4270,13 +4270,13 @@
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[2]</property>
<value>1</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[2]</property>
<value>0</value>
</binding>
</mod-up>
......@@ -4285,7 +4285,7 @@
<animation>
<type>translate</type>
<object-name>RT-31 b 2</object-name>
<property>fdm/jsbsim/propulsion/fuel/panel/button/RT-add-d1</property>
<property>fdm/jsbsim/systems/instr/RT/panel/button/set[2]</property>
<factor>0.001</factor>
<axis>
<x>0.0</x>
......
......@@ -57,19 +57,19 @@ setlistener("/sim/signals/fdm-initialized", func(p) {
#Tu144.SetFuel(8000.0, 0.0, 0.0, 0.0);
}else if(state == "taxi"){
Tu144.SetFuel(22000.0, 2000.0, 5000.0, 3000.0);
Tu144.FuelMeterTarget(3, 2, 0);
Tu144.FuelMeterFill(32000.0);
}else if(state == "take-off"){
Tu144.SetFuel(20000.0, 2000.0, 5000.0, 3000.0);
Tu144.FuelMeterTarget(3, 0, 0);
Tu144.FuelMeterFill(30000.0);
}else if(state == "approach"){
Tu144.SetFuel(10000.0, 0.0, 0.0, 0.0);
Tu144.FuelMeterTarget(1, 0, 0);
Tu144.FuelMeterFill(10000.0);
}else if(state == "cruise"){
Tu144.SetFuel(20000.0, 2000.0, 0.0, 8000.0);
Tu144.FuelMeterTarget(3, 0, 0);
Tu144.FuelMeterFill(30000.0);
}else{
Tu144.SetFuel(20000.0, 0.0, 5000.0, 5000.0);
Tu144.FuelMeterTarget(3, 0, 0);
Tu144.FuelMeterFill(30000.0);
}
if((state == "parked") or (state == "gate")){
......
......@@ -430,19 +430,27 @@ Crossfeeds = func(on) {
}
}
# @brief Set init values for digital fuel meter digits.
# @param tens tens of tons, 0..9
# @param ones tons, 0..9
# @param tenths hundreds of kg, 0..9
FuelMeterTarget = func(tens, ones, tenths) {
setprop("/fdm/jsbsim/propulsion/fuel/RT/init/d-1", tenths);
setprop("/fdm/jsbsim/propulsion/fuel/RT/init/d0", ones);
setprop("/fdm/jsbsim/propulsion/fuel/RT/init/d1", tens);
# @brief Set digital fuel meter fill. Takes 1 second.
# @param kg Fuel in kg, will be rounded to 100.
FuelMeterFill = func(kg, reset = 0) {
setprop("/fdm/jsbsim/systems/instr/RT/init/fill-t", math.round(kg * 0.001, 0.1));
var on = 0;
if(reset){
on = getprop("/fdm/jsbsim/systems/instr/RT/panel/switch/run");
FuelMeter(0);
}
setprop("/fdm/jsbsim/systems/instr/RT/init/fill-set", 1);
settimer(func {
setprop("/fdm/jsbsim/systems/instr/RT/init/fill-set", 0);
if(reset){
FuelMeter(on);
}
}, 1.0);
}
# @brief Toggle digital fuel meter.
FuelMeter = func(on) {
setprop("/fdm/jsbsim/propulsion/fuel/panel/switch/RT", on);
setprop("/fdm/jsbsim/systems/instr/RT/panel/switch/run", on);
}
# @brief Do fuel trim.
......
......@@ -342,21 +342,6 @@
<filter><type>exponential</type><filter-time>0.05</filter-time><input>/fdm/jsbsim/propulsion/engine[4]/panel/light/start-ready</input><output>/instrumentation/jsbsim/propulsion/engine[4]/panel/light/start-ready</output></filter>
<filter><type>exponential</type><filter-time>0.05</filter-time><input>/fdm/jsbsim/propulsion/engine[4]/panel/light/test-ok</input><output>/instrumentation/jsbsim/propulsion/engine[4]/panel/light/test-ok</output></filter>
<filter><type>exponential</type><filter-time>0.05</filter-time><input>/fdm/jsbsim/propulsion/fire/panel/light/fire-pilots</input><output>/instrumentation/jsbsim/propulsion/fire/panel/light/fire-pilots</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-c[0]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-c[1]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-c[2]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-c[3]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d0[0]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d0[1]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d0[2]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d0[3]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d0[4]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[4]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d1[0]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d1[1]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d1[2]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d1[3]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d1[4]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[4]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/propulsion/fuel/panel/crt/RT-d2[4]</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d2[4]</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/propulsion/fuel/panel/gauge/cg-pMAC</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/gauge/cg-pMAC</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/propulsion/fuel/panel/gauge/cg-set-pMAC</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/gauge/cg-set-pMAC</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/propulsion/fuel/panel/gauge/ITD-1-kg</input><output>/instrumentation/jsbsim/propulsion/fuel/panel/gauge/ITD-1-kg</output></filter>
......@@ -541,6 +526,21 @@
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/DA[1]/gauge/ball-deg</input><output>/instrumentation/jsbsim/systems/instr/DA[1]/gauge/ball-deg</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/DA[1]/gauge/Habs-dot-m_s</input><output>/instrumentation/jsbsim/systems/instr/DA[1]/gauge/Habs-dot-m_s</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/DA[1]/gauge/roll-deg</input><output>/instrumentation/jsbsim/systems/instr/DA[1]/gauge/roll-deg</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/c[0]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/c[1]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/c[2]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/c[3]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d0[0]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d0[1]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d0[2]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d0[3]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d0[4]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[4]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d1[0]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[0]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d1[1]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[1]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d1[2]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[2]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d1[3]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[3]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d1[4]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[4]</output></filter>
<filter><type>gain</type><gain>1.0</gain><input>/fdm/jsbsim/systems/instr/RT/panel/crt/d2[4]</input><output>/instrumentation/jsbsim/systems/instr/RT/panel/crt/d2[4]</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/TNV/gauge/T-degC</input><output>/instrumentation/jsbsim/systems/instr/TNV/gauge/T-degC</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/US/gauge/V-km_h</input><output>/instrumentation/jsbsim/systems/instr/US/gauge/V-km_h</output></filter>
<filter><type>exponential</type><filter-time>0.08</filter-time><input>/fdm/jsbsim/systems/instr/VAR[0]/gauge/Habs-dot-m_s</input><output>/instrumentation/jsbsim/systems/instr/VAR[0]/gauge/Habs-dot-m_s</output></filter>
......
......@@ -342,21 +342,6 @@
<signal><property type="string">/instrumentation/jsbsim/propulsion/engine[4]/panel/light/start-ready</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/engine[4]/panel/light/test-ok</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fire/panel/light/fire-pilots</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-c[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d0[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d1[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/crt/RT-d2[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/gauge/cg-pMAC</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/gauge/cg-set-pMAC</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/propulsion/fuel/panel/gauge/ITD-1-kg</property><type>float</type></signal>
......@@ -541,6 +526,21 @@
<signal><property type="string">/instrumentation/jsbsim/systems/instr/DA[1]/gauge/ball-deg</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/DA[1]/gauge/Habs-dot-m_s</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/DA[1]/gauge/roll-deg</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/c[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d0[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[0]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[1]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[2]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[3]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d1[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/RT/panel/crt/d2[4]</property><type>int</type><interpolation>discrete</interpolation></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/TNV/gauge/T-degC</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/US/gauge/V-km_h</property><type>float</type></signal>
<signal><property type="string">/instrumentation/jsbsim/systems/instr/VAR[0]/gauge/Habs-dot-m_s</property><type>float</type></signal>
......
......@@ -8,8 +8,8 @@
<property>fcs/NPK/Orbita/clock/time-sec</property>
<property>fcs/NPK/Orbita/sensor/fuel/remaining-t</property>
<property>fcs/NPK/Orbita/sensor/fuel/flow-t_h</property>
<property>systems/instr/RT/fuel-remaining-t</property>
<property>systems/instr/RT/fuel-flow-t_h</property>
<property>fcs/NPK/Orbita/func/Vground/Vground/V_g-km_h</property>
......@@ -25,13 +25,13 @@
<min>
<quotient>
<difference>
<p>fcs/NPK/Orbita/sensor/fuel/remaining-t</p>
<p>systems/instr/RT/fuel-remaining-t</p>
<product>
<p>fcs/NPK/Orbita/flightplan/ANZ-kg</p>
<v>0.001</v>
</product>
</difference>
<p>fcs/NPK/Orbita/sensor/fuel/flow-t_h</p>
<p>systems/instr/RT/fuel-flow-t_h</p>
</quotient>
<v>1000.0</v>
</min>
......
......@@ -253,6 +253,7 @@
<system file="Tu-144-jsbsim/instruments/AChS_3"/>
-->
<system file="Tu-144-jsbsim/instruments/SSTM"/>
<system file="Tu-144-jsbsim/instruments/RT"/>
<system file="Tu-144-jsbsim/comm/SPU"/>
<system file="Tu-144-jsbsim/comm/Landysh_0"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE system [
<!ENTITY U "systems/instr/RT">
<!ENTITY E1 "propulsion/engine[0]">
<!ENTITY E2 "propulsion/engine[1]">
<!ENTITY E3 "propulsion/engine[2]">
<!ENTITY E4 "propulsion/engine[3]">
<!ENTITY APU "propulsion/engine[4]">
<!ENTITY TF1 "propulsion/fuel/tank[0]">
<!ENTITY TF2 "propulsion/fuel/tank[1]">
<!ENTITY TF3 "propulsion/fuel/tank[2]">
<!ENTITY TF4 "propulsion/fuel/tank[3]">
<!ENTITY T8 "propulsion/fuel/tank[13]">
]>
<system name="RT-31 fuel consumption meter">
<!-- Расходомер топлива РТ-31 -->
<property>&U;/panel/button/set[0]</property>
<property>&U;/panel/button/set[1]</property>
<property>&U;/panel/button/set[2]</property>
<property>&U;/panel/switch/FK</property>
<property>&U;/panel/switch/run</property>
<property>propulsion/fuel/panel/button/test-lights</property>
<property>&E1;/fuel-flow-rate-t_h</property>
<property>&E2;/fuel-flow-rate-t_h</property>
<property>&E3;/fuel-flow-rate-t_h</property>
<property>&E4;/fuel-flow-rate-t_h</property>
<property>&APU;/fuel-flow-rate-t_h</property>
<property>&TF1;/dump-flow-pps</property>
<property>&TF2;/dump-flow-pps</property>
<property>&TF3;/dump-flow-pps</property>
<property>&TF4;/dump-flow-pps</property>
<property>&T8;/dump-flow-pps</property>
<property>propulsion/fuel/contents-kg</property>
<property>systems/elec/DC27/U-V</property>
<property>systems/elec/DC27/U-ok</property>
<property>&U;/init/fill-t</property>
<property>&U;/init/fill-set</property>
<property>simulation/init-hotstart-avionics</property>
<channel name="Electric consumers" execrate="4">
<pure_gain name="&U;/elec/DC27-A">
<input>systems/elec/DC27/U-V</input>
<!-- 5 * 40 W -->
<gain>0.274</gain>
</pure_gain>
</channel>
<channel name="Logic" execrate="4">
<switch name="&U;/func/fill-t">
<default value="&U;/func/fill-t"/>
<test logic="OR" value="&U;/init/fill-t">
simulation/init-hotstart-avionics NE 0
&U;/init/fill-set NE 0
</test>
<test value="&U;/func/fill-t">
systems/elec/DC27/U-ok EQ 0
</test>
<test logic="OR" value="&U;/func/fill-inp">
&U;/panel/button/set[0] NE 0
&U;/panel/button/set[1] NE 0
&U;/panel/button/set[2] NE 0
</test>
</switch>
<switch name="&U;/func/fill-latch">
<default value="&U;/func/fill-t"/>
<test logic="OR" value="&U;/func/fill-latch">
systems/elec/DC27/U-ok EQ 0
&U;/panel/button/set[0] NE 0
&U;/panel/button/set[1] NE 0
&U;/panel/button/set[2] NE 0
</test>
</switch>
<fcs_function name="&U;/func/fill-inp">
<function>
<product>
<fraction>
<product>
<sum>
<p>&U;/func/fill-latch</p>
<product>
<p>&U;/panel/button/set[0]</p>
<v>0.1</v>
</product>
<p>&U;/panel/button/set[1]</p>
<product>
<p>&U;/panel/button/set[2]</p>
<v>10.0</v>
</product>
</sum>
<v>0.01</v>
</product>
</fraction>
<v>100.0</v>
</product>
</function>
</fcs_function>
<fcs_function name="&U;/func/fuel-flow-t_h">
<function>
<sum>
<p>&E1;/fuel-flow-rate-t_h</p>
<p>&E2;/fuel-flow-rate-t_h</p>
<p>&E3;/fuel-flow-rate-t_h</p>
<p>&E4;/fuel-flow-rate-t_h</p>
<p>&APU;/fuel-flow-rate-t_h</p>
<product>
<sum>
<p>&TF1;/dump-flow-pps</p>
<p>&TF2;/dump-flow-pps</p>
<p>&TF3;/dump-flow-pps</p>
<p>&TF4;/dump-flow-pps</p>
<p>&T8;/dump-flow-pps</p>
</sum>
<!-- = 0.453592 * 3600 / 1000 -->
<v>1.633</v>
</product>
</sum>
</function>
</fcs_function>
<pure_gain name="&U;/fuel-flow-t_h">
<input>&U;/func/fuel-flow-t_h</input>
<gain>systems/elec/DC27/U-ok</gain>
</pure_gain>
<switch name="&U;/func/used-inp">
<default value="&U;/fuel-flow-t_h"/>
<test logic="AND" value="&U;/func/used-t">
&U;/panel/switch/run EQ 0
systems/elec/DC27/U-ok NE 0
</test>
</switch>
<switch name="&U;/func/used-c1">
<!-- = 1 / 3600 -->
<default value="0.0002778"/>
<test logic="AND" value="-10.0">
&U;/panel/switch/run EQ 0
systems/elec/DC27/U-ok NE 0
</test>
</switch>
<integrator name="&U;/func/used-t">
<input>&U;/func/used-inp</input>
<c1>&U;/func/used-c1</c1>
</integrator>
<summer name="&U;/func/fuel-remaining-t">
<input>&U;/func/fill-t</input>
<input>-&U;/func/used-t</input>
<clipto>
<min>0.0</min>
<max>99.9</max>
</clipto>
</summer>
<pure_gain name="&U;/fuel-remaining-t">
<input>&U;/func/fuel-remaining-t</input>
<gain>systems/elec/DC27/U-ok</gain>
</pure_gain>
<fcs_function name="&U;/func/diff-kg">
<function>
<difference>
<product>
<p>&U;/func/fuel-remaining-t</p>
<v>1000.0</v>
</product>
<p>propulsion/fuel/contents-kg</p>
</difference>
</function>
</fcs_function>
</channel>
<channel name="Indication" execrate="4">
<fcs_function name="&U;/panel/crt/d0[0]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>
</nq>
<integer>
<mod>
<product>
<p>&E1;/fuel-flow-rate-t_h</p>
<ifthen>
<gt>
<p>&E1;/fuel-flow-rate-t_h</p>
<v>10.0</v>
</gt>
<v>1.0</v>
<v>10.0</v>
</ifthen>
</product>
<v>10</v>
</mod>
</integer>
<v>-1.0</v>
</ifthen>
</function>
</fcs_function>
<fcs_function name="&U;/panel/crt/d1[0]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>
</nq>
<integer>
<mod>
<product>
<p>&E1;/fuel-flow-rate-t_h</p>
<ifthen>
<gt>
<p>&E1;/fuel-flow-rate-t_h</p>
<v>10.0</v>
</gt>
<v>0.1</v>
<v>1.0</v>
</ifthen>
</product>
<v>10</v>
</mod>
</integer>
<v>-1.0</v>
</ifthen>
</function>
</fcs_function>
<fcs_function name="&U;/panel/crt/c[0]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>
</nq>
<ifthen>
<gt>
<p>&E1;/fuel-flow-rate-t_h</p>
<v>10.0</v>
</gt>
<v>1.0</v>
<v>0.0</v>
</ifthen>
<v>-1.0</v>
</ifthen>
</function>
</fcs_function>
<fcs_function name="&U;/panel/crt/d0[1]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>
</nq>
<integer>
<mod>
<product>
<p>&E2;/fuel-flow-rate-t_h</p>
<ifthen>
<gt>
<p>&E2;/fuel-flow-rate-t_h</p>
<v>10.0</v>
</gt>
<v>1.0</v>
<v>10.0</v>
</ifthen>
</product>
<v>10</v>
</mod>
</integer>
<v>-1.0</v>
</ifthen>
</function>
</fcs_function>
<fcs_function name="&U;/panel/crt/d1[1]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>
</nq>
<integer>
<mod>
<product>
<p>&E2;/fuel-flow-rate-t_h</p>
<ifthen>
<gt>
<p>&E2;/fuel-flow-rate-t_h</p>
<v>10.0</v>
</gt>
<v>0.1</v>
<v>1.0</v>
</ifthen>
</product>
<v>10</v>
</mod>
</integer>
<v>-1.0</v>
</ifthen>
</function>
</fcs_function>
<fcs_function name="&U;/panel/crt/c[1]">
<function>
<ifthen>
<nq>
<p>systems/elec/DC27/U-ok</p>
<v>0.0</v>