Typo: velocities/u-km_h, not velocities/v-km_h. Enforce that doors are closed above 20 km/h.

parent d34be796
......@@ -11,7 +11,7 @@
<property>atmosphere/T-degC</property>
<property>velocities/v-km_h</property>
<property>velocities/u-km_h</property>
<property>simulation/init</property>
......@@ -50,7 +50,7 @@
<table>
<!-- [NL-10] -->
<!-- XXX only the front speed, but good enough for now. -->
<independentVar lookup="row">velocities/v-km_h</independentVar>
<independentVar lookup="row">velocities/u-km_h</independentVar>
<tableData>
100.0 0.0
200.0 1.0
......
......@@ -20,7 +20,7 @@
<!-- XXX For now the allowing/disallowing open doors is hardcoded. -->
<property>velocities/v-km_h</property>
<property>velocities/u-km_h</property>
<property>propulsion/engine[0]/starter</property>
<property>propulsion/engine[0]/set-running</property>
<property>propulsion/engine[1]/starter</property>
......@@ -47,6 +47,7 @@
<switch name="&U;/allowed-left">
<default value="1"/>
<test logic="OR" value="0">
velocities/u-km_h GT 20.0
propulsion/engine[0]/starter NE 0
propulsion/engine[0]/set-running NE 0
propulsion/engine[1]/starter NE 0
......@@ -57,6 +58,7 @@
<switch name="&U;/allowed-right">
<default value="1"/>
<test logic="OR" value="0">
velocities/u-km_h GT 20.0
propulsion/engine[2]/starter NE 0
propulsion/engine[2]/set-running NE 0
propulsion/engine[3]/starter NE 0
......
......@@ -66,8 +66,8 @@
</function>
</fcs_function>
<pure_gain name="velocities/v-km_h">
<input>velocities/v-fps</input>
<pure_gain name="velocities/u-km_h">
<input>velocities/u-fps</input>
<gain>1.0972</gain>
</pure_gain>
......
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