Clean up unused funcs. Typos: spawn with windows closed if engine running; do...

Clean up unused funcs. Typos: spawn with windows closed if engine running; do not switch to external view on crash; rotate stairs with aircraft tilt.
parent 79fbda26
#!/usr/local/bin/gnuplot -c
#!/usr/bin/gnuplot -c
#
#
# MSRPplot.plt
......
#!/usr/local/bin/gnuplot -c
#!/usr/bin/gnuplot -c
#
#
# MSRPview.plt
......
......@@ -3645,6 +3645,33 @@ pos-norm MlgDoor{0,1} MlgBase MlgStrut MlgHinge
</animation>
<animation>
<type>rotate</type>
<object-name>Groundsupply</object-name>
<!-- FIXME Make axis when AC exporer works. -->
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-4.21522</z-m>
</center>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<expression>
<rad2deg>
<atan2>
<difference>
<property>gear/gear[2]/compression-norm</property>
<property>gear/gear[1]/compression-norm</property>
</difference>
<!-- 6.322 m -->
<value>20.74147</value>
</atan2>
</rad2deg>
</expression>
</animation>
<animation>
<type>rotate</type>
<object-name>Groundsupply</object-name>
......
var af_break = 0;
var af_deform = 0;
var af_sys = 0;
var stop = 0;
......@@ -6,15 +5,10 @@ var stop = 0;
var CheckLimits = func {
var af_break_new = getprop("/fdm/jsbsim/systems/airframe/damage/break");
var af_deform_new = getprop("/fdm/jsbsim/systems/airframe/damage/deform");
var af_sys_new = getprop("/fdm/jsbsim/systems/airframe/damage/systems");
var stop_new = getprop("/sim/crashed");
if((af_break_new > af_break) * getprop("/sim/current-view/internal")){
setprop("/sim/current-view/view-number", 7);
}
if(af_deform_new > af_deform){
gui.popupTip("Airframe: deformation G limit exceeded!");
}
......@@ -27,7 +21,6 @@ var CheckLimits = func {
gui.popupTip("Flight model stopped.");
}
af_break = af_break_new;
af_deform = af_deform_new;
af_sys = af_sys_new;
stop = stop_new;
......
......@@ -168,4 +168,10 @@ setlistener("/sim/signals/fdm-initialized", func(p) {
Tu144.Startbrake(0);
}
if((state != "parked") and (state != "gate")){
Tu144.WindowsImmed(0.0);
Tu144.Doors(0.0);
Tu144.Cargodoors(0.0);
}
});
......@@ -5,11 +5,6 @@
<channel name="Dynamics">
<pure_gain name="accelerations/udot-m_sec2">
<input>accelerations/udot-ft_sec2</input>
<gain>0.3048</gain>
</pure_gain>
<fcs_function name="velocities/p-aero-deg_sec">
<function>
<todegrees>
......@@ -86,16 +81,6 @@
<gain>0.3048</gain>
</pure_gain>
<pure_gain name="aero/qbar-atm">
<input>aero/qbar-psf</input>
<gain>0.00047254166666666666</gain><!-- = 1/2116.224 -->
</pure_gain>
<pure_gain name="aero/qbar-mmHg">
<input>aero/qbar-psf</input>
<gain>0.359131417378</gain>
</pure_gain>
</channel>
......
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