Models: Remove CDU
This commit is contained in:
parent
1f55c208ac
commit
be095cf92f
|
@ -1,78 +0,0 @@
|
|||
#BY FGPRC, WIP
|
||||
|
||||
points = getprop("/autopilot/route-manager/route/num");
|
||||
|
||||
crtPageNum = getprop("/autopilot/route-manager/route/crtPageNum");
|
||||
|
||||
var turnLEGS = func(move)
|
||||
{
|
||||
if(move == 1 and crtPageNum <= pageNum){crtPageNum = crtPageNum + 1;}
|
||||
else if(move == 0 and crtPageNum != 1){crtPageNum = crtPageNum - 1;}
|
||||
|
||||
setprop("/autopilot/route-manager/route/crtPageNum",crtPageNum);
|
||||
}
|
||||
#Display phase
|
||||
|
||||
var getLEGS = {
|
||||
angle2Point : func(line)
|
||||
{
|
||||
if(getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/leg-bearing-true-deg") != nil)
|
||||
{
|
||||
return sprintf("%3.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/leg-bearing-true-deg"));
|
||||
}
|
||||
else
|
||||
{return "";}
|
||||
},
|
||||
id : func(line)
|
||||
{
|
||||
if(getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/id") != nil)
|
||||
{
|
||||
return getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/id");
|
||||
}
|
||||
else
|
||||
{return "";}
|
||||
},
|
||||
distance : func(line)
|
||||
{
|
||||
if(getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/leg-distance-nm") != nil)
|
||||
{
|
||||
return sprintf("%3.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/leg-distance-nm"))~" NM";
|
||||
}
|
||||
else
|
||||
{return "";}
|
||||
},
|
||||
altSpdLimit : func(line)
|
||||
{
|
||||
if(getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/speed-kts") != nil)
|
||||
{
|
||||
var tmp = "";
|
||||
tmp = sprintf("%5.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+1)~"]/speed-kts"))~"/"~sprintf("%5.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+1)~"]/altitude-ft"));
|
||||
return tmp;
|
||||
}
|
||||
else if(getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/altitude-ft") != nil)
|
||||
{
|
||||
return sprintf("%5.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) *5)+line)~"]/altitude-ft"));
|
||||
}
|
||||
else
|
||||
{return "";}
|
||||
},
|
||||
};
|
||||
#var pageNum = math.ceil(points / 5);
|
||||
#if(pageNum == nil)
|
||||
# {
|
||||
# page = "";
|
||||
# }
|
||||
# else
|
||||
# {page = crtPageNum ~ "/" ~ pageNum;}
|
||||
|
||||
#if (actName != nil)
|
||||
#{
|
||||
# line1lt = sprintf("%3.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/leg-bearing-true-deg"));
|
||||
# line1l = getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/id");
|
||||
# line2ct = sprintf("%3.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/leg-distance-nm"))~" NM";
|
||||
# line1r = sprintf("%5.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/altitude-ft"));
|
||||
# if (getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/speed-kts") != nil)
|
||||
# {
|
||||
# line1r = getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/speed-kts")~"/"~sprintf("%5.0f", getprop("/autopilot/route-manager/route/wp["~(((crtPageNum -1) /5)+1)~"]/altitude-ft"));
|
||||
# }
|
||||
#}
|
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 270 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -1,58 +0,0 @@
|
|||
<!-- $Id: display-text.xml,v 1.2 2009/11/02 16:31:26 vmmeazza Exp $ -->
|
||||
<!--
|
||||
Zeppelin NT07 airship.
|
||||
|
||||
Copyright (C) 2009 Anders Gidenstam (anders(at)gidenstam.org)
|
||||
This file is licensed under the GPL license v2 or later.
|
||||
-->
|
||||
<PropertyList>
|
||||
|
||||
<params>
|
||||
<property type="string">engines/engine[0]/mp-inhg</property>
|
||||
<factor type="double">1.0</factor>
|
||||
<offset type="double">0.0</offset>
|
||||
<format type="string">%2.1f</format>
|
||||
<color>
|
||||
<red type="double">0.0</red>
|
||||
<green type="double">1.0</green>
|
||||
<blue type="double">0.0</blue>
|
||||
</color>
|
||||
</params>
|
||||
|
||||
<text>
|
||||
<name>text</name>
|
||||
<axis-alignment>yz-plane</axis-alignment>
|
||||
<type type="string">text-value</type>
|
||||
<property alias="../../params/property"/>
|
||||
<scale alias="../../params/factor"/>
|
||||
<offset alias="../../params/offset"/>
|
||||
<format>%s</format>
|
||||
<truncate type="bool">false</truncate>
|
||||
<font>Helvetica.txf</font>
|
||||
<draw-text type="bool">true</draw-text>
|
||||
<draw-alignment type="bool">false</draw-alignment>
|
||||
<draw-boundingbox type="bool">false</draw-boundingbox>
|
||||
<alignment alias="../../params/alignment"/>
|
||||
<character-size alias="../../params/character-size"/>
|
||||
</text>
|
||||
|
||||
<animation>
|
||||
<type>material</type>
|
||||
<diffuse>
|
||||
<red alias="../../../params/color/red"/>
|
||||
<green alias="../../../params/color/green"/>
|
||||
<blue alias="../../../params/color/blue"/>
|
||||
</diffuse>
|
||||
<ambient>
|
||||
<red alias="../../../params/color/red"/>
|
||||
<green alias="../../../params/color/green"/>
|
||||
<blue alias="../../../params/color/blue"/>
|
||||
</ambient>
|
||||
<emission>
|
||||
<red alias="../../../params/color/red"/>
|
||||
<green alias="../../../params/color/green"/>
|
||||
<blue alias="../../../params/color/blue"/>
|
||||
</emission>
|
||||
</animation>
|
||||
|
||||
</PropertyList>
|
|
@ -219,22 +219,6 @@
|
|||
</offsets>
|
||||
</model>
|
||||
|
||||
<!-- CDU -->
|
||||
<model>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>sim/multiplay/generic/int[14]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<path>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/boeing.xml</path>
|
||||
<offsets>
|
||||
<x-m>1.35</x-m>
|
||||
<y-m>0.25</y-m>
|
||||
<z-m>0.9</z-m>
|
||||
<pitch-deg>-4</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
<!-- Accelerator -->
|
||||
<animation>
|
||||
<type>translate</type>
|
||||
|
|
|
@ -237,22 +237,6 @@
|
|||
</offsets>
|
||||
</model>
|
||||
|
||||
<!-- CDU -->
|
||||
<model>
|
||||
<condition>
|
||||
<equals>
|
||||
<property>sim/multiplay/generic/int[14]</property>
|
||||
<value>1</value>
|
||||
</equals>
|
||||
</condition>
|
||||
<path>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/boeing.xml</path>
|
||||
<offsets>
|
||||
<x-m>1.35</x-m>
|
||||
<y-m>0.25</y-m>
|
||||
<z-m>0.9</z-m>
|
||||
<pitch-deg>-4</pitch-deg>
|
||||
</offsets>
|
||||
</model>
|
||||
<!-- Accelerator -->
|
||||
<animation>
|
||||
<type>translate</type>
|
||||
|
|
|
@ -134,8 +134,8 @@
|
|||
<int n="11" alias="/controls/direction"/>
|
||||
<int n="12" alias="/systems/codriver-enable"/>
|
||||
<!--<int n="13" alias="/interior/enable_mug"/>-->
|
||||
<int n="14" alias="/systems/instruments/enable_cdu"/>
|
||||
<int n="15" alias="/systems/instruments/enable_switches"/>
|
||||
<!--<int n="14" alias="/systems/instruments/enable_cdu"/>-->
|
||||
<int n="15" alias="/systems/instruments/enable_switches"/>
|
||||
<int n="16" alias="/warninglight/start"/>
|
||||
|
||||
<!--float current num:25 -->
|
||||
|
@ -467,11 +467,6 @@
|
|||
<autohold>
|
||||
<file>Aircraft/followme_e-tron/Nasal/auto_hold.nas</file>
|
||||
</autohold>
|
||||
<cdu>
|
||||
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/boeing.nas</file>
|
||||
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/library.nas</file>
|
||||
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/functions.nas</file>
|
||||
</cdu>
|
||||
<datalink>
|
||||
<file>Aircraft/followme_e-tron/Models/Interior/Instruments/CDU/datalink.nas</file>
|
||||
</datalink>
|
||||
|
|
Loading…
Reference in New Issue