Merge pull request #67 from Octal450/landing-light-drag
Landing light drag
This commit is contained in:
commit
23ca6b7c18
2 changed files with 34 additions and 0 deletions
|
@ -619,6 +619,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 {
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
<aerodynamics>
|
||||
|
||||
<property value="0.0">ice/wing</property>
|
||||
<property value="0">rubbish/landL</property>
|
||||
<property value="0">rubbish/landR</property>
|
||||
|
||||
<axis name="LIFT">
|
||||
|
||||
|
@ -351,6 +353,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.0016</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.0016</value>
|
||||
</product>
|
||||
</function>
|
||||
|
||||
</axis>
|
||||
|
||||
|
|
Reference in a new issue