Merge branch 'master' into FMGC

This commit is contained in:
Joshua Davidson 2019-02-16 13:53:27 -05:00
commit 4169b7261c
9 changed files with 159 additions and 71 deletions

View file

@ -630,7 +630,7 @@
<animation>
<type>rotate</type>
<object-name>ParkBrk</object-name>
<property>controls/gear/brake-parking</property>
<property>fdm/jsbsim/fcs/brake-lever</property>
<factor>90</factor>
<axis>
<object-name>ParkBrk.axis</object-name>
@ -1640,7 +1640,7 @@
<animation>
<type>rotate</type>
<object-name>Lcutoff</object-name>
<property>controls/engines/engine[0]/cutoff-switch</property>
<property>fdm/jsbsim/fcs/engine-cutoff[0]</property>
<interpolation>
<entry><ind>0</ind><dep> 0</dep></entry>
<entry><ind>1</ind><dep>-70</dep></entry>
@ -1666,7 +1666,7 @@
<animation>
<type>rotate</type>
<object-name>Rcutoff</object-name>
<property>controls/engines/engine[1]/cutoff-switch</property>
<property>fdm/jsbsim/fcs/engine-cutoff[1]</property>
<interpolation>
<entry><ind>0</ind><dep> 0</dep></entry>
<entry><ind>1</ind><dep>-70</dep></entry>
@ -4520,7 +4520,7 @@
<animation>
<type>rotate</type>
<object-name>FlapsLever</object-name>
<property>controls/flight/flap-lever</property>
<property>fdm/jsbsim/fcs/flap-lever</property>
<interpolation>
<entry><ind>0</ind><dep> 0</dep></entry>
<entry><ind>1</ind><dep>14</dep></entry>
@ -5567,7 +5567,7 @@
<animation>
<type>rotate</type>
<object-name>SpdBrk</object-name>
<property>fdm/jsbsim/spoilers/speedbrake-nul</property>
<property>fdm/jsbsim/spoilers/main-lever</property>
<factor>45</factor>
<axis>
<object-name>SpdBrk.axis</object-name>
@ -5577,7 +5577,7 @@
<animation>
<type>translate</type>
<object-name>SpdBrk</object-name>
<property>controls/flight/speedbrake-arm</property>
<property>fdm/jsbsim/spoilers/lever-arm</property>
<factor>-0.006</factor>
<axis>
<x>1</x>
@ -5589,7 +5589,7 @@
<animation>
<type>translate</type>
<object-name>SpdBrk</object-name>
<property>controls/flight/speedbrake-arm</property>
<property>fdm/jsbsim/spoilers/lever-arm</property>
<factor>0.006</factor>
<axis>
<x>0</x>
@ -5878,7 +5878,7 @@
<name>Engine 1 throttle lever</name>
<type>rotate</type>
<object-name>thr_l</object-name>
<property>controls/engines/engine[0]/throttle-lever</property>
<property>fdm/jsbsim/fcs/throttle-lever[0]</property>
<interpolation>
<entry><ind>0.00000</ind><dep> 0</dep></entry>
<entry><ind>0.00999</ind><dep> 0</dep></entry>
@ -5903,7 +5903,7 @@
<name>Engine 1 throttle lever rev</name>
<type>rotate</type>
<object-name>thr_l</object-name>
<property>controls/engines/engine[0]/reverser</property>
<property>fdm/jsbsim/fcs/reverse-lever[0]</property>
<factor>-3.5</factor>
<axis>
<object-name>trim.axis</object-name>
@ -5913,7 +5913,7 @@
<name>Engine 1 throttle lever rev 2</name>
<type>rotate</type>
<object-name>thr_l</object-name>
<property>controls/engines/engine[0]/throttle-rev</property>
<property>fdm/jsbsim/fcs/reverse-thr-lever[0]</property>
<interpolation>
<entry><ind>0.00</ind><dep> 0</dep></entry>
<entry><ind>0.50</ind><dep>-20</dep></entry>
@ -5953,7 +5953,7 @@
<name>Engine 2 throttle lever</name>
<type>rotate</type>
<object-name>thr_r</object-name>
<property>controls/engines/engine[1]/throttle-lever</property>
<property>fdm/jsbsim/fcs/throttle-lever[1]</property>
<interpolation>
<entry><ind>0.00000</ind><dep> 0</dep></entry>
<entry><ind>0.00999</ind><dep> 0</dep></entry>
@ -5978,7 +5978,7 @@
<name>Engine 2 throttle lever rev</name>
<type>rotate</type>
<object-name>thr_r</object-name>
<property>controls/engines/engine[1]/reverser</property>
<property>fdm/jsbsim/fcs/reverse-lever[1]</property>
<factor>-3.5</factor>
<axis>
<object-name>trim.axis</object-name>
@ -5988,7 +5988,7 @@
<name>Engine 2 throttle lever rev 2</name>
<type>rotate</type>
<object-name>thr_r</object-name>
<property>controls/engines/engine[1]/throttle-rev</property>
<property>fdm/jsbsim/fcs/reverse-thr-lever[1]</property>
<interpolation>
<entry><ind>0.00</ind><dep> 0</dep></entry>
<entry><ind>0.50</ind><dep>-20</dep></entry>

View file

@ -88,7 +88,7 @@ var at_input_spd_kts = props.globals.getNode("/it-autoflight/input/spd-kts", 1);
var fd_roll = props.globals.getNode("/it-autoflight/fd/roll-bar", 1);
var fd_pitch = props.globals.getNode("/it-autoflight/fd/pitch-bar", 1);
var decision = props.globals.getNode("/instrumentation/mk-viii/inputs/arinc429/decision-height", 1);
var skid_slip = props.globals.getNode("/instrumentation/slip-skid-ball/indicated-slip-skid", 1);
var slip_skid = props.globals.getNode("/instrumentation/pfd/slip-skid", 1);
var FMGCphase = props.globals.getNode("/FMGC/status/phase", 1);
var loc = props.globals.getNode("/instrumentation/nav[0]/heading-needle-deflection-norm", 1);
var gs = props.globals.getNode("/instrumentation/nav[0]/gs-needle-deflection-norm", 1);
@ -732,7 +732,7 @@ var canvas_PFD_base = {
me.AI_horizon_ground_rot.setRotation(-roll_cur * D2R, me["AI_center"].getCenter());
me.AI_horizon_sky_rot.setRotation(-roll_cur * D2R, me["AI_center"].getCenter());
me["AI_slipskid"].setTranslation(math.clamp(skid_slip.getValue(), -7, 7) * -15, 0);
me["AI_slipskid"].setTranslation(math.clamp(slip_skid.getValue(), -15, 15) * 7, 0);
me["AI_bank"].setRotation(-roll_cur * D2R);
if (fbw_law.getValue() == 0) {

View file

@ -42,8 +42,8 @@
id="namedview371"
showgrid="false"
inkscape:zoom="0.70710678"
inkscape:cx="938.79281"
inkscape:cy="528.72437"
inkscape:cx="1179.7256"
inkscape:cy="481.71975"
inkscape:window-x="1592"
inkscape:window-y="-8"
inkscape:window-maximized="1"
@ -2549,61 +2549,16 @@
transform="matrix(0.83705476,-0.54711912,0.83705476,0.54711912,0,0)"
inkscape:label="#rect4872" />
<g
id="GS_scale"
inkscape:label="#g4569"
transform="translate(5.2325902,0)">
id="ALT_group2"
inkscape:label="#g4828">
<rect
transform="matrix(0,1,-1,0,0,0)"
y="-741.82098"
y="-747.05353"
x="509.50464"
height="49.153526"
width="7.7970567"
id="rect4925"
style="fill:#c9d121;fill-opacity:1;stroke:none;stroke-width:4.4806304;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g
transform="translate(0,-1.0792028)"
id="g4531">
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4927"
d="m 714.66382,422.10642 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51646 2.85073,-6.36713 6.36731,-6.36713 3.51658,0 6.36732,2.85066 6.36732,6.36713 0,3.51648 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4929"
d="m 714.66382,324.13136 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51646 2.85073,-6.36713 6.36731,-6.36713 3.51658,0 6.36732,2.85066 6.36732,6.36713 0,3.51648 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
id="g4565">
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4931"
d="m 714.66382,716.47762 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51647 2.85073,-6.36714 6.36731,-6.36714 3.51658,0 6.36732,2.85066 6.36732,6.36714 0,3.51647 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4933"
d="m 714.66382,618.50242 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51647 2.85073,-6.36714 6.36731,-6.36714 3.51658,0 6.36732,2.85066 6.36732,6.36714 0,3.51647 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
<rect
inkscape:label="#rect4872"
transform="matrix(0.54714118,0.83704034,-0.54714118,0.83704034,0,0)"
y="-368.9328"
x="949.0885"
height="33.211578"
width="33.211578"
id="GS_pointer"
style="fill:none;fill-opacity:1;stroke:#b055be;stroke-width:4.03498697;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<g
id="ALT_group2"
inkscape:label="#g4828">
<text
id="QNH_std"
y="885.26117"
@ -2726,6 +2681,59 @@
y="885.26117"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:38.39944839px;font-family:'Liberation Sans';-inkscape-font-specification:'Liberation Sans';text-align:center;text-anchor:middle;fill:#179ab7;fill-opacity:1;stroke-width:0.75">1013</tspan></text>
</g>
<g
id="GS_scale"
inkscape:label="#g4569"
transform="translate(5.2325902,0)">
<rect
style="fill:#c9d121;fill-opacity:1;stroke:none;stroke-width:4.4806304;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="rect4898"
width="7.7970567"
height="49.153526"
x="509.50464"
y="-741.82098"
transform="matrix(0,1,-1,0,0,0)" />
<g
transform="translate(0,-1.0792028)"
id="g4531">
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4927"
d="m 714.66382,422.10642 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51646 2.85073,-6.36713 6.36731,-6.36713 3.51658,0 6.36732,2.85066 6.36732,6.36713 0,3.51648 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4929"
d="m 714.66382,324.13136 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51646 2.85073,-6.36713 6.36731,-6.36713 3.51658,0 6.36732,2.85066 6.36732,6.36713 0,3.51648 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
<g
id="g4565">
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4931"
d="m 714.66382,716.47762 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51647 2.85073,-6.36714 6.36731,-6.36714 3.51658,0 6.36732,2.85066 6.36732,6.36714 0,3.51647 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<path
sodipodi:nodetypes="zzzzz"
inkscape:connector-curvature="0"
id="circle4933"
d="m 714.66382,618.50242 c -3.51657,0 -6.36731,-2.85066 -6.36731,-6.36712 0,-3.51647 2.85073,-6.36714 6.36731,-6.36714 3.51658,0 6.36732,2.85066 6.36732,6.36714 0,3.51647 -2.85075,6.36712 -6.36732,6.36712 z"
style="fill:none;fill-opacity:1;stroke:#cecdce;stroke-width:2.39996552;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
</g>
</g>
<rect
inkscape:label="#rect4872"
transform="matrix(0.54714118,0.83704034,-0.54714118,0.83704034,0,0)"
y="-368.9328"
x="949.0885"
height="33.211578"
width="33.211578"
id="GS_pointer"
style="fill:none;fill-opacity:1;stroke:#b055be;stroke-width:4.03498697;stroke-linecap:square;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
<rect
style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.4000001;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;paint-order:fill markers stroke"
id="ALT_mask"

Before

(image error) Size: 277 KiB

After

(image error) Size: 277 KiB

View file

@ -442,7 +442,7 @@
<property>metrics/bw-ft</property>
<property>aero/bi2vel</property>
<property>velocities/r-aero-rad_sec</property>
<value>0.2</value>
<value>0.1</value>
</product>
</function>

View file

@ -1691,11 +1691,56 @@
<output>/engines/engine[1]/n2-actual</output>
<output>/engines/engine[4]/n2</output>
</lag_filter>
<lag_filter name="fcs/throttle-lever[0]">
<input>/controls/engines/engine[0]/throttle-lever</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/throttle-lever[1]">
<input>/controls/engines/engine[1]/throttle-lever</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/reverse-lever[0]">
<input>/controls/engines/engine[0]/reverser</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/reverse-lever[1]">
<input>/controls/engines/engine[1]/reverser</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/reverse-thr-lever[0]">
<input>/controls/engines/engine[0]/throttle-rev</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/reverse-thr-lever[1]">
<input>/controls/engines/engine[1]/throttle-rev</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/engine-cutoff[0]">
<input>/controls/engines/engine[0]/cutoff-switch</input>
<c1>20</c1>
</lag_filter>
<lag_filter name="fcs/engine-cutoff[1]">
<input>/controls/engines/engine[1]/cutoff-switch</input>
<c1>20</c1>
</lag_filter>
</channel>
<channel name="SFCC">
<lag_filter name="fcs/flap-lever">
<input>/controls/flight/flap-lever</input>
<c1>20</c1>
</lag_filter>
<switch name="fcs/sfcc/unit1-avail">
<default value="0"/>
<test logic="OR" value="1">
@ -1905,6 +1950,11 @@
<channel name="Brakes">
<lag_filter name="fcs/brake-lever">
<input>/controls/gear/brake-parking</input>
<c1>20</c1>
</lag_filter>
<pure_gain name="/services/chokes/nose-half">
<input>/services/chokes/nose</input>
<gain>0.5</gain>

View file

@ -84,6 +84,11 @@
</function>
</fcs_function>
<lag_filter name="spoilers/main-lever">
<input>spoilers/speedbrake-nul</input>
<c1>20</c1>
</lag_filter>
<summer name="spoilers/main-cmd">
<input>spoilers/speedbrake-nul</input>
<input>spoilers/auto-speedbrake-cmd</input>
@ -93,6 +98,11 @@
</clipto>
<output>fbw/spoiler-output</output>
</summer>
<lag_filter name="spoilers/lever-arm">
<input>/controls/flight/speedbrake-arm</input>
<c1>20</c1>
</lag_filter>
</channel>

View file

@ -19,8 +19,8 @@
<expression>
<table>
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>-1.5</dep></entry>
<entry><ind>350</ind><dep>-0.6</dep></entry>
<entry><ind>140</ind><dep>-1.0</dep></entry>
<entry><ind>350</ind><dep>-0.5</dep></entry>
</table>
</expression>
</Kp>
@ -46,8 +46,8 @@
<expression>
<table>
<property>/fdm/jsbsim/velocities/vc-kts</property>
<entry><ind>140</ind><dep>-1.5</dep></entry>
<entry><ind>350</ind><dep>-0.6</dep></entry>
<entry><ind>140</ind><dep>-1.0</dep></entry>
<entry><ind>350</ind><dep>-0.5</dep></entry>
</table>
</expression>
</Ki>

View file

@ -337,5 +337,25 @@
</input>
<output>/instrumentation/pfd/vs-digit-trans</output>
</filter>
<filter>
<name>Slip/Skid Indicator</name>
<debug>false</debug>
<type>exponential</type>
<input>
<condition>
<property>/fdm/jsbsim/position/wow</property>
</condition>
<expression>
<product>
<property>/fdm/jsbsim/accelerations/Ny</property>
<value>-25</value>
</product>
</expression>
</input>
<input>/fdm/jsbsim/aero/beta-deg</input>
<output>/instrumentation/pfd/slip-skid</output>
<filter-time>0.16</filter-time>
</filter>
</PropertyList>

View file

@ -1 +1 @@
4759
4764