Add drag due to landing lights.

This commit is contained in:
Jonathan Redpath 2018-12-08 17:38:14 +00:00
parent 9e12238b9b
commit 858fb41824
2 changed files with 34 additions and 0 deletions

View file

@ -561,6 +561,18 @@ var lightsLoop = maketimer(0.2, func {
setprop("/controls/lighting/no-smoking-sign", 0); # sign stays on in cabin but sound still occurs
}
}
if (getprop("controls/lighting/landing-lights[1]") >= 0.5) {
setprop("/fdm/jsbsim/rubbish/landL", 1);
} else {
setprop("/fdm/jsbsim/rubbish/landL", 0);
}
if (getprop("controls/lighting/landing-lights[2]") >= 0.5) {
setprop("/fdm/jsbsim/rubbish/landR", 1);
} else {
setprop("/fdm/jsbsim/rubbish/landR", 0);
}
});
var lTray = func {

View file

@ -10,6 +10,8 @@
<aerodynamics>
<property value="0.0">ice/wing</property>
<property value="0">rubbish/landL</property>
<property value="0">rubbish/landR</property>
<axis name="LIFT">
@ -356,6 +358,26 @@
</table>
</product>
</function>
<function name="aero/force/Drag_landing_light_left">
<description>Drag due to left landing light</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>rubbish/landL</property>
<value>0.025</value>
</product>
</function>
<function name="aero/force/Drag_landing_light_right">
<description>Drag due to right landing light</description>
<product>
<property>aero/qbar-psf</property>
<property>metrics/Sw-sqft</property>
<property>rubbish/landR</property>
<value>0.025</value>
</product>
</function>
</axis>