1
0
Fork 0

Added a Bendix RDR-160 weather radar for the Aerostar...

works in PLIB only , and still segfaults when FGFS shuts down...
This commit is contained in:
sydadams 2007-04-16 01:24:02 +00:00
parent 9f811b66c6
commit e13df0af25
5 changed files with 2808 additions and 0 deletions

View file

@ -0,0 +1,227 @@
<?xml version="1.0"?>
<!--
Bendix King RDR-160 Weather Radar
Syd Adams
-->
<PropertyList>
<path>RDR160.ac</path>
<animation>
<type>material</type>
<object-name>RDR160.screen</object-name>
<emission>
<red>0.8</red>
<green>0.9</green>
<blue>0.8</blue>
<factor-prop>/instrumentation/wxradar/dim</factor-prop>
</emission>
</animation>
<animation>
<type>material</type>
<object-name>RDR160.labels</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>
<animation>
<type>rotate</type>
<object-name>RDR160.brt</object-name>
<property>instrumentation/wxradar/dim</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>240</dep></entry>
</interpolation>
<center>
<x-m>0</x-m>
<y-m>-0.067</y-m>
<z-m>0.050</z-m>
</center>
<axis>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>RDR160.tilt</object-name>
<property>instrumentation/wxradar/tilt</property>
<interpolation>
<entry><ind>-15</ind><dep>-130</dep></entry>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>15</ind><dep>125</dep></entry>
</interpolation>
<center>
<x-m>0</x-m>
<y-m>0.067</y-m>
<z-m>-0.045</z-m>
</center>
<axis>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<animation>
<type>rotate</type>
<object-name>RDR160.power</object-name>
<property>/instrumentation/wxradar/switch-pos</property>
<interpolation>
<entry><ind>0</ind><dep>0</dep></entry>
<entry><ind>1</ind><dep>40</dep></entry>
<entry><ind>2</ind><dep>80</dep></entry>
<entry><ind>3</ind><dep>110</dep></entry>
</interpolation>
<center>
<x-m>0</x-m>
<y-m>-0.067</y-m>
<z-m>-0.041</z-m>
</center>
<axis>
<x>-1.0</x>
<y>0.0</y>
<z>0.0</z>
</axis>
</animation>
<!-- OSG Pick Animations -->
<animation>
<type>pick</type>
<object-name>brt.up</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/dim</property>
<step>0.05</step>
<min>0.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>brt.dwn</object-name>
<action>
<button>0</button>
<repeatable>true</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/dim</property>
<step>-0.05</step>
<min>0.0</min>
<max>1.0</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>tilt.up</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/tilt</property>
<step>5.0</step>
<min>-15.0</min>
<max>15.0</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>tilt.dwn</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/tilt</property>
<step>-5.0</step>
<min>-15.0</min>
<max>15.0</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>pwr.off</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/switch-pos</property>
<step>-1</step>
<min>0</min>
<max>4</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>pwr.on</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-adjust</command>
<property>instrumentation/wxradar/switch-pos</property>
<step>1</step>
<min>0</min>
<max>4</max>
<wrap>false</wrap>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>RDR160.rngup</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>instrumentation/wxradar/set-range</property>
<value>1</value>
</binding>
</action>
</animation>
<animation>
<type>pick</type>
<object-name>RDR160.rngdwn</object-name>
<action>
<button>0</button>
<repeatable>false</repeatable>
<binding>
<command>property-assign</command>
<property>instrumentation/wxradar/set-range</property>
<value>-1</value>
</binding>
</action>
</animation>
</PropertyList>

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,54 @@
#### King RDR-160 Weather Radar ####
#### Syd Adams ####
####
#### Include this file in the Set file to run the RDR-160 radar
####
#### Switch Modes 0 = off ; 1 = stby ; 2 = tst ; 3 = on;
#### Radar Modes WX ; WXA ; MAP
#### Ranges : 10 , 20, 40, 80 , 160
RADAR = props.globals.getNode("/instrumentation/wxradar",1);
FDM_ON = 0;
P_Str =["off","stby", "tst","on"];
_setlistener("/sim/signals/fdm-initialized", func {
RADAR.getNode("serviceable",1).setBoolValue(1);
RADAR.getNode("range",1).setIntValue(10);
RADAR.getNode("set-range",1).setIntValue(0);
RADAR.getNode("minimized",1).setBoolValue(0);
RADAR.getNode("switch",1).setValue("off");
RADAR.getNode("switch-pos",1).setIntValue(0);
RADAR.getNode("mode",1).setValue("WX");
RADAR.getNode("lightning",1).setBoolValue(0);
RADAR.getNode("display-mode",1).setValue("arc");
RADAR.getNode("dim",1).setValue(0.5);
FDM_ON = 1;
print("KING RDR-160 ... OK");
},1);
setlistener("/instrumentation/wxradar/switch-pos", func {
if(FDM_ON != 0){
var swtch = cmdarg().getValue();
RADAR.getNode("switch",1).setValue(P_Str[swtch]);
}
});
setlistener("/instrumentation/wxradar/set-range", func {
if(FDM_ON != 0){
var rng = RADAR.getNode("range").getValue();
var num = cmdarg().getValue();
cmdarg().setValue(0);
if(num > 0){
rng *= 2;
if(rng > 160){rng = 160.0;}
}else{
if(num < 0){
rng *=0.5;
if(rng < 10){rng = 10.0;}
}
}
RADAR.getNode("range").setValue(rng);
}
});

Binary file not shown.

Binary file not shown.