1
0
Fork 0

separated ki252a and ki256 instruments ...

This commit is contained in:
sydadams 2007-04-21 23:16:56 +00:00
parent 1b0d629659
commit 50f0ceabff
6 changed files with 2877 additions and 164 deletions

View file

@ -21,6 +21,8 @@ fdmode_last = "off";
current_alt=0.0;
alt_select = 0.0;
alt_offset = 0.0;
V_pitch=0.0;
V_roll=0.0;
DH = 0;
NAVGS = props.globals.getNode("/instrumentation/nav/has-gs",1);
NAVGS_RANGE = props.globals.getNode("/instrumentation/nav/gs-distance",1);
@ -34,6 +36,8 @@ SPD = props.globals.getNode("/autopilot/locks/speed",1);
setlistener("/sim/signals/fdm-initialized", func {
fdprop.getNode("serviceable",1).setBoolValue(1);
fdprop.getNode("vbar-pitch",1).setValue(0.0);
fdprop.getNode("vbar-roll",1).setValue(0.0);
fdprop.getNode("fd-on",1).setBoolValue(0);
fdprop.getNode("fdmode",1).setValue("off");
fdprop.getNode("fdmodeV",1).setValue("off");
@ -116,7 +120,7 @@ clear_ap = func {
}
update_nav = func {
if(!fdprop.getNode("serviceable").getBoolValue()){return;}
if(fdprop.getNode("serviceable").getBoolValue()){
var APmode = fdprop.getNode("fdmode").getValue();
var VNAV = fdprop.getNode("fdmodeV").getValue();
if(APmode == "nav-arm"){
@ -147,6 +151,18 @@ update_nav = func {
if(offset < -990 and offset > 990){
fdprop.getNode("fdmodeV").setValue("alt-arm");}
}
}
V_pitch=props.globals.getNode("autopilot/settings/target-pitch-deg").getValue();
V_pitch-=props.globals.getNode("orientation/pitch-deg").getValue();
if(V_pitch > 30){V_pitch = 30;}
if(V_pitch < -30){V_pitch = -30;}
fdprop.getNode("vbar-pitch",1).setValue(V_pitch);
V_roll=props.globals.getNode("autopilot/internal/target-roll-deg").getValue();
if(V_roll == nil){V_roll = 0.0;}
V_roll -=props.globals.getNode("orientation/roll-deg").getValue();
if(V_roll > 30){V_roll = 30;}
if(V_roll < -30){V_roll = -30;}
fdprop.getNode("vbar-roll",1).setValue(V_roll);
}
get_altoffset = func{

File diff suppressed because it is too large Load diff

View file

@ -1,31 +1,25 @@
<?xml version="1.0"?>
<!--
KG - 258 Atitude Gyro
KI - 525A HSI
KING KI-525A Pictorial Indicator
Syd Adams
-->
<PropertyList>
<path>kfc200.ac</path>
<path>ki252a.ac</path>
<animation>
<type>material</type>
<object-name>AIring</object-name>
<object-name>AIpitch</object-name>
<object-name>Symbol</object-name>
<object-name>kfc-hdgbug</object-name>
<object-name>FDbars</object-name>
<object-name>kfc-crs</object-name>
<object-name>kfc-crs.001</object-name>
<object-name>To-flag</object-name>
<object-name>From-flag</object-name>
<object-name>CmpsCard</object-name>
<object-name>Compass</object-name>
<object-name>nav-warning</object-name>
<object-name>hdg-warning</object-name>
<object-name>GSneedle</object-name>
<object-name>KI525A</object-name>
<object-name>KI252A.back</object-name>
<object-name>CRSknob</object-name>
<object-name>HDGknob</object-name>
<emission>
@ -36,123 +30,7 @@ Syd Adams
</emission>
</animation>
<!-- KI-525A / KG-258 -->
<animation>
<type>rotate</type>
<object-name>AIring</object-name>
<object-name>AIpitch</object-name>
<property>orientation/roll-deg</property>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>AIpitch</object-name>
<property>orientation/pitch-deg</property>
<interpolation>
<entry><ind>-90.0</ind><dep>0.0161</dep></entry>
<entry><ind>-30.0</ind><dep>0.0161</dep></entry>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>30.0</ind><dep>-0.0171</dep></entry>
<entry><ind>90.0</ind><dep>-0.0171</dep></entry>
</interpolation>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>0</x>
<y>0</y>
<z>1</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>FDbars</object-name>
<condition>
<property>instrumentation/kfc200/fd_on</property>
</condition>
</animation>
<animation>
<type>translate</type>
<object-name>FDbars</object-name>
<property>autopilot/settings/target-pitch-deg</property>
<factor>0.00056</factor>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>FDbars</object-name>
<property>/autopilot/internal/target-roll-deg</property>
<axis>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.004</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>FDbars</object-name>
<property>orientation/roll-deg</property>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.004</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>translate</type>
<object-name>FDbars</object-name>
<property>/orientation/pitch-deg</property>
<factor>0.00056</factor>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>-1.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<!-- COMPASS -->
<!-- KI-525A -->
<animation>
<type>rotate</type>
@ -163,12 +41,7 @@ Syd Adams
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-0.099</z-m>
</center>
</animation>
</animation>
<animation>
<type>rotate</type>
@ -176,19 +49,14 @@ Syd Adams
<object-name>kfc-crs.001</object-name>
<object-name>To-flag</object-name>
<object-name>From-flag</object-name>
<object-name>CmpsCard</object-name>
<property>orientation/heading-magnetic-deg</property>
<object-name>Compass</object-name>
<property>instrumentation/heading-indicator/indicated-heading-deg</property>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-0.099</z-m>
</center>
</animation>
</animation>
<animation>
<type>rotate</type>
@ -202,12 +70,7 @@ Syd Adams
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-0.099</z-m>
</center>
</animation>
</animation>
<animation>
<type>translate</type>
@ -223,35 +86,25 @@ Syd Adams
<y>1.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-0.099</z-m>
</center>
</animation>
</animation>
<animation>
<type>translate</type>
<object-name>GSneedle</object-name>
<property>instrumentation/nav/gs-needle-deflection</property>
<interpolation>
<entry><ind>-100.0</ind><dep>-0.010</dep></entry>
<entry><ind>-5.0</ind><dep>-0.010</dep></entry>
<entry><ind>-100.0</ind><dep>-0.0085</dep></entry>
<entry><ind>-5.0</ind><dep>-0.0085</dep></entry>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>10.0</ind><dep>0.0172</dep></entry>
<entry><ind>100.0</ind><dep>0.0172</dep></entry>
<entry><ind>10.0</ind><dep>0.0162</dep></entry>
<entry><ind>100.0</ind><dep>0.0162</dep></entry>
</interpolation>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>-0.104</z-m>
</center>
</animation>
</animation>
<animation>
<type>select</type>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,147 @@
<?xml version="1.0"?>
<!--
KI-256 FlightDirector Indicator
Syd Adams
-->
<PropertyList>
<path>ki256.ac</path>
<animation>
<type>material</type>
<object-name>KI256.ring</object-name>
<object-name>KI256.pitch</object-name>
<object-name>KI256.plane</object-name>
<object-name>FDbars</object-name>
<object-name>KI256.markers</object-name>
<object-name>Lpivot</object-name>
<object-name>Rpivot</object-name>
<emission>
<red>0.8</red>
<green>0.4</green>
<blue>0.2</blue>
<factor-prop>/systems/electrical/outputs/instrument-lights</factor-prop>
</emission>
</animation>
<!-- KI-256 -->
<animation>
<type>rotate</type>
<object-name>KI256.ring</object-name>
<object-name>KI256.pitch</object-name>
<property>orientation/roll-deg</property>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>1</x>
<y>0</y>
<z>0</z>
</axis>
</animation>
<animation>
<type>translate</type>
<object-name>KI256.pitch</object-name>
<property>orientation/pitch-deg</property>
<interpolation>
<entry><ind>-30.0</ind><dep>0.0120</dep></entry>
<entry><ind>0.0</ind><dep>0.0</dep></entry>
<entry><ind>30.0</ind><dep>-0.0120</dep></entry>
</interpolation>
<center>
<x-m>0.0</x-m>
<y-m>0.0</y-m>
<z-m>0.0</z-m>
</center>
<axis>
<x>0</x>
<y>0</y>
<z>1</z>
</axis>
</animation>
<animation>
<type>select</type>
<object-name>FDbars</object-name>
<object-name>Lpivot</object-name>
<object-name>Rpivot</object-name>
<condition>
<property>instrumentation/kfc200/fd_on</property>
</condition>
</animation>
<animation>
<type>translate</type>
<object-name>FDbars</object-name>
<object-name>Lpivot</object-name>
<object-name>Rpivot</object-name>
<property>instrumentation/kfc200/vbar-pitch</property>
<factor>0.0004</factor>
<axis>
<x>0.0</x>
<y>0.0</y>
<z>1.0</z>
</axis>
<center>
<x-m>0.0</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>FDbars</object-name>
<object-name>Lpivot</object-name>
<object-name>Rpivot</object-name>
<property>instrumentation/kfc200/vbar-roll</property>
<axis>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.004</x-m>
<y-m>0</y-m>
<z-m>0.0</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>Lpivot</object-name>
<property>instrumentation/kfc200/vbar-roll</property>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.00</x-m>
<y-m>-0.023</y-m>
<z-m>-0.003</z-m>
</center>
</animation>
<animation>
<type>rotate</type>
<object-name>Rpivot</object-name>
<property>instrumentation/kfc200/vbar-roll</property>
<axis>
<x>1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
<center>
<x-m>0.00</x-m>
<y-m>0.023</y-m>
<z-m>-0.003</z-m>
</center>
</animation>
</PropertyList>