Add drag due to landing lights.
This commit is contained in:
parent
9e12238b9b
commit
858fb41824
2 changed files with 34 additions and 0 deletions
|
@ -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 {
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
@ -357,6 +359,26 @@
|
|||
</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>
|
||||
|
||||
<axis name="SIDE">
|
||||
|
|
Reference in a new issue