1
0
Fork 0

New HSI from Paul McCann

This commit is contained in:
j4strngs 2002-12-28 00:48:31 +00:00
parent f55bba6054
commit 84d494fa94
6 changed files with 1014 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,569 @@
<?xml version="1.0"?>
<!--
HSI instrument
Started 24-7-01 by Timothy Gale
-->
<PropertyList>
<name>HSI</name>
<w-base>128</w-base>
<h-base>128</h-base>
<params>
<nav-gs-needle-deflection>/radios/nav[0]/gs-needle-deflection</nav-gs-needle-deflection>
<hsi-has-gs-needle>/sim/instrument-options/hsi[0]/has-gs-needle</hsi-has-gs-needle>
</params>
<layers>
<layer>
<name>compass rose</name>
<texture>
<path>Aircraft/Instruments/Textures/faces-1.rgb</path>
<x1>0.0</x1>
<y1>0.51</y1>
<x2>0.49</x2>
<y2>1.0</y2>
</texture>
<w>94</w>
<h>94</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/orientation/heading-magnetic-deg</property>
<min>-360.0</min>
<max>360.0</max>
<scale>-1.0</scale>
</transformation>
</transformations>
</layer>
<layer>
<name>bezel</name>
<!-- <condition>
<not-equals>
<property>/sim/aero</property>
<value>c310u3a</value>
</not-equals>
</condition> -->
<texture>
<path>Aircraft/Instruments/Textures/bezel3.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<w>124</w>
<h>124</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-1.0</offset>
</transformation>
</transformations>
</layer>
<!-- Taken from Nav1.xml -->
<layer>
<name>TO/FROM/OFF flag</name>
<type>switch</type>
<property>/radios/nav[0]/to-flag</property>
<layer>
<name>TO flag</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.9375</x1>
<y1>0.578125</y1>
<x2>1.0</x2>
<y2>0.625</y2>
</texture>
<w>14</w>
<h>14</h>
</layer>
<layer>
<name>FROM/OFF flag</name>
<type>switch</type>
<property>/radios/nav[0]/from-flag</property>
<layer>
<name>FROM flag</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.9375</x1>
<y1>0.625</y1>
<x2>1.0</x2>
<y2>0.671875</y2>
</texture>
<w>14</w>
<h>14</h>
</layer>
<layer>
<name>OFF flag</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.9375</x1>
<y1>0.5</y1>
<x2>1.0</x2>
<y2>0.546875</y2>
</texture>
<w>14</w>
<h>14</h>
</layer>
</layer>
<transformations>
<transformation>
<type>rotation</type>
<property>/orientation/heading-magnetic-deg</property>
<min>0.0</min>
<max>360</max>
<scale>-1.0</scale>
</transformation>
<transformation>
<type>rotation</type>
<property>/radios/nav[0]/radials/selected-deg</property>
<min>0.0</min>
<max>360.0</max>
<scale>1.0</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>16</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>glidescope needle</name>
<condition>
<equals>
<property alias="../../../../../params/hsi-has-gs-needle"/>
<value>1</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
<x1>0.93</x1>
<y1>0.5</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<w>16</w>
<h>116</h>
<transformations>
<transformation>
<type>y-shift</type>
<property alias="../../../../../params/nav-gs-needle-deflection"/>
<min>-3.5</min>
<max>3.5</max>
<scale>7.0</scale>
</transformation>
<transformation>
<type>rotation</type>
<offset>90</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Nav1</name>
<texture>
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
<x1>0.0</x1>
<y1>0.75</y1>
<x2>0.25</x2>
<y2>1.0</y2>
</texture>
<w>68</w>
<h>68</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/orientation/heading-magnetic-deg</property>
<min>0.0</min>
<max>360</max>
<scale>-1.0</scale>
</transformation>
<transformation>
<type>rotation</type>
<property>/radios/nav[0]/radials/selected-deg</property>
<min>0.0</min>
<max>360.0</max>
<scale>1.0</scale>
</transformation>
</transformations>
</layer>
<layer>
<name>Nav1_deviation</name>
<texture>
<path>Aircraft/Instruments/Textures/hsi.rgb</path>
<x1>0.25</x1>
<y1>0.75</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<w>68</w>
<h>68</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/orientation/heading-magnetic-deg</property>
<min>0.0</min>
<max>360</max>
<scale>-1.0</scale>
</transformation>
<transformation>
<type>rotation</type>
<property>/radios/nav[0]/radials/selected-deg</property>
<min>0.0</min>
<max>360</max>
<scale>1.0</scale>
</transformation>
<transformation>
<type>x-shift</type>
<property>/radios/nav[0]/heading-needle-deflection</property>
<min>-10.0</min>
<max>10.0</max>
<scale>3.2</scale>
</transformation>
</transformations>
</layer>
<layer>
<name>Plane</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.5</x1>
<y1>0.734375</y1>
<x2>0.59375</x2>
<y2>0.828125</y2>
</texture>
<w>25</w>
<h>25</h>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-6</offset>
</transformation>
</transformations>
</layer>
<!-- Copied from gyro.xml -->
<layer>
<name>heading bug</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.9375</x1>
<y1>0.4375</y1>
<x2>1.0</x2>
<y2>0.5</y2>
</texture>
<w>12</w>
<h>12</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/autopilot/settings/heading-bug-deg</property>
<min>-360.0</min>
<max>360.0</max>
</transformation>
<transformation>
<type>rotation</type>
<property>/orientation/heading-magnetic-deg</property>
<min>-360.0</min>
<max>360.0</max>
<scale>-1.0</scale>
</transformation>
<transformation>
<type>y-shift</type>
<offset>42</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>glare shield</name>
<texture>
<path>Aircraft/Instruments/Textures/glareshield1.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>1.0</y2>
</texture>
<w>128</w>
<h>128</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
<!-- <transformation>
<type>y-shift</type>
<offset>-1</offset>
</transformation> -->
</transformations>
</layer>
<layer>
<name>Heading Knob</name>
<texture>
<path>Aircraft/Instruments/Textures/blister.rgb</path>
<x1>0.25</x1>
<y1>0.75</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<h>24</h>
<w>24</w>
<transformations>
<transformation>
<type>x-shift</type>
<offset>45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>180</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Heading label</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.0078125</x1>
<y1>0.5</y1>
<x2>0.1640625</x2>
<y2>0.6640625</y2>
</texture>
<w>15</w>
<h>15</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<property>/autopilot/settings/heading-bug-deg</property>
</transformation>
</transformations>
</layer>
<layer>
<name>OBS Knob</name>
<texture>
<path>Aircraft/Instruments/Textures/blister.rgb</path>
<x1>0.25</x1>
<y1>0.75</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<h>24</h>
<w>24</w>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>180</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>OBS label</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.0078125</x1>
<y1>0.66015625</y1>
<x2>0.1640625</x2>
<y2>0.8242185</y2>
</texture>
<w>15</w>
<h>15</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<property>/radios/nav[0]/radials/selected-deg</property>
<min>0</min>
<max>360</max>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<name>OBS small clockwise rotation</name>
<button>0</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/nav[0]/radials/selected-deg</property>
<step>-1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>OBS large clockwise rotation</name>
<button>1</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/nav[0]/radials/selected-deg</property>
<step>-5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>OBS small counter-clockwise rotation</name>
<button>0</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/nav[0]/radials/selected-deg</property>
<step>1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>OBS large counter-clockwise rotation</name>
<button>1</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/radios/nav[0]/radials/selected-deg</property>
<step>5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>Heading hold small clockwise rotation</name>
<button>0</button>
<x>36</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/autopilot/settings/heading-bug-deg</property>
<step>-1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>Heading hold large clockwise rotation</name>
<button>1</button>
<x>36</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/autopilot/settings/heading-bug-deg</property>
<step>-5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>Heading hold small counter-clockwise rotation</name>
<button>0</button>
<x>46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/autopilot/settings/heading-bug-deg</property>
<step>1.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name>Heading hold large counter-clockwise rotation</name>
<button>1</button>
<x>46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/autopilot/settings/heading-bug-deg</property>
<step>5.0</step>
<min>0</min>
<max>360</max>
<wrap>1</wrap>
</binding>
</action>
</actions>
</PropertyList>

View file

@ -0,0 +1,316 @@
<?xml version="1.0"?>
<!--
Default gyro compass instrument.
Started summer 2000 by David Megginson, david@megginson.com.
This is an instrument configuration file for the open-source flight
simulator FlightGear (www.flightgear.org). The file is an XML-encoded
FlightGear property list defining the instrument's layers and actions.
Each instrument is composed of layers stacked on top of each other.
A layer may be a texture (with transparent parts to show the layers
underneath), text, or a special layer that switches between two
others (say, to turn an indicator light on or off). Each layer can
move independently in proportion to a property value, and text
can be generated from property values as well: all of the layer's
movements are defined as transformations.
Actions are hotspots on the instrument that will respond to a mouse
click. Actions always modify the values of properties, either by
adjusting them, toggling them, or swaping them with other
properties' values.
-->
<PropertyList>
<name>Gyro Compass</name>
<w-base>128</w-base>
<h-base>128</h-base>
<params>
<dg-style>/sim/instrument-options/dg/style</dg-style>
</params>
<layers>
<layer>
<name>compass rose</name>
<texture>
<path>Aircraft/Instruments/Textures/faces-1.rgb</path>
<x1>0.0</x1>
<y1>0.515625</y1>
<x2>0.484375</x2>
<y2>1.0</y2>
</texture>
<w>110</w>
<h>110</h>
<transformations>
<transformation>
<type>rotation</type>
<property>/steam/gyro-compass-deg</property>
<min>-720.0</min>
<max>720.0</max>
<scale>-1.0</scale>
</transformation>
</transformations>
</layer>
<!-- fix misc.rgb -->
<!-- style A -->
<layer>
<name>fixed center</name>
<condition>
<equals>
<property alias="../../../../../params/dg-style"/>
<value>0</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
<x1>0.50390625</x1>
<y1>0.5078125</y1>
<x2>0.9765625</x2>
<y2>0.98046875</y2>
</texture>
<w>105</w>
<h>105</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-1.5</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-1.5</offset>
</transformation>
</transformations>
</layer>
<!-- style B -->
<layer>
<name>fixed center</name>
<condition>
<equals>
<property alias="../../../../../params/dg-style"/>
<value>1</value>
</equals>
</condition>
<texture>
<path>Aircraft/Instruments/Textures/gyro-fronts.rgb</path>
<x1>0.0</x1>
<y1>0.0</y1>
<x2>0.49609375</x2>
<y2>0.49609375</y2>
</texture>
<w>110</w>
<h>110</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>glare shield</name>
<texture>
<path>Aircraft/Instruments/Textures/bezel1.rgb</path>
<x1>0.5</x1>
<y1>0.0</y1>
<x2>1.0</x2>
<y2>0.5</y2>
</texture>
<w>128</w>
<h>128</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>2</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-2</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>OBS Knob</name>
<texture>
<path>Aircraft/Instruments/Textures/blister.rgb</path>
<x1>0.25</x1>
<y1>0.75</y1>
<x2>0.5</x2>
<y2>1.0</y2>
</texture>
<h>24</h>
<w>24</w>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<offset>180</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>OBS label</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.0078125</x1>
<y1>0.66015625</y1>
<x2>0.1640625</x2>
<y2>0.82421875</y2>
</texture>
<w>15</w>
<h>15</h>
<transformations>
<transformation>
<type>x-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>y-shift</type>
<offset>-45</offset>
</transformation>
<transformation>
<type>rotation</type>
<property>/steam/gyro-compass-deg</property>
<min>0</min>
<max>360</max>
</transformation>
</transformations>
</layer>
<layer>
<name>ADF Needle</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.8671875</x1>
<y1>0.25</y1>
<x2>0.921875</x2>
<y2>1.0</y2>
</texture>
<w>9</w>
<h>64</h>
<transformations>
<transformation>
<type>rotation</type>
<!--set>45</offset-->
<property>/radios/kr-87/outputs/needle-deg</property>
<min>-360</min>
<max>360</max>
</transformation>
<transformation>
<type>x-shift</type>
<offset>-1</offset>
</transformation>
</transformations>
</layer>
<layer>
<name>Plane</name>
<texture>
<path>Aircraft/Instruments/Textures/misc-1.rgb</path>
<x1>0.5</x1>
<y1>0.734375</y1>
<x2>0.59375</x2>
<y2>0.828125</y2>
</texture>
<w>25</w>
<h>25</h>
<transformations>
<transformation>
<type>y-shift</type>
<offset>-6</offset>
</transformation>
</transformations>
</layer>
</layers>
<actions>
<action>
<name></name>
<button>0</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/steam/gyro-compass-error-deg</property>
<step>-1</step>
<min>0</min>
<max>359</max>
<wrap>true</wrap>
</binding>
</action>
<action>
<name></name>
<button>1</button>
<x>-56</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/steam/gyro-compass-error-deg</property>
<step>-5</step>
<min>0</min>
<max>359</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name></name>
<button>0</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/steam/gyro-compass-error-deg</property>
<step>1</step>
<min>0</min>
<max>359</max>
<wrap>1</wrap>
</binding>
</action>
<action>
<name></name>
<button>1</button>
<x>-46</x>
<y>-56</y>
<w>12</w>
<h>24</h>
<binding>
<command>property-adjust</command>
<property>/steam/gyro-compass-error-deg</property>
<step>5</step>
<min>0</min>
<max>359</max>
<wrap>1</wrap>
</binding>
</action>
</actions>
</PropertyList>

129
Aircraft/c310-ifr-set.xml Normal file
View file

@ -0,0 +1,129 @@
<?xml version="1.0"?>
<!--
************************************************************************
Cessna 310U3A simulation config. This files ties together all the components
used by FGFS to represent the C310R. Components include the flight data
model, instrument panel, and external 3D model.
3D models can be downloaded from http://home.t-online.de/home/Wolfram.Kuss/
March 2002 Jim Wilson, jimw@kelcomaine.com
************************************************************************
-->
<PropertyList>
<sim>
<description>Cessna 310</description>
<flight-model>jsb</flight-model>
<aero>c310</aero>
<systems>
<electrical>
<path>Aircraft/c172/c172-electrical.xml</path>
</electrical>
</systems>
<sound>
<audible>true</audible>
<path>Aircraft/c310/c310-sound.xml</path>
</sound>
<panel>
<path>Aircraft/c310/c310-ifr-panel.xml</path>
<visibility>true</visibility>
</panel>
<panel_2>
<path>Aircraft/c310/c310-mini-panel.xml</path>
</panel_2>
<model>
<path>Aircraft/c310u3a/Models/c310u3a.xml</path>
</model>
<instrument-options>
<dg>
<style>1</style>
</dg>
</instrument-options>
</sim>
<consumables>
<fuel>
<tank n="0">
<level-gal_us archive="y">14</level-gal_us>
</tank>
<tank n="1">
<level-gal_us archive="y">14</level-gal_us>
</tank>
<tank n="2">
<level-gal_us archive="y">14</level-gal_us>
</tank>
<tank n="3">
<level-gal_us archive="y">14</level-gal_us>
</tank>
</fuel>
</consumables>
<controls>
<aileron-trim>-0.026</aileron-trim>
<magnetos n="0">3</magnetos>
<magnetos n="1">3</magnetos>
</controls>
<engines>
<engine n="0">
<rpm>1000</rpm>
</engine>
<engine n="1">
<rpm>1000</rpm>
</engine>
</engines>
<autopilot>
<config>
<min-climb-speed-kt type="float">81.0</min-climb-speed-kt>
<best-climb-speed-kt type="float">107.0</best-climb-speed-kt>
<target-climb-rate-fpm type="float">1000.0</target-climb-rate-fpm>
<target-descent-rate-fpm type="float">1000.0</target-descent-rate-fpm>
<elevator-adj-factor type="float">6000.0</elevator-adj-factor>
<integral-contribution type="float">0.004</integral-contribution>
<zero-pitch-throttle type="float">0.45</zero-pitch-throttle>
<zero-pitch-trim-full-throttle type="float">0.11</zero-pitch-trim-full-throttle>
</config>
</autopilot>
<input>
<keyboard>
<key n="60">
<name>&lt;</name>
<desc>Rudder Trim Left</desc>
<binding>
<command>property-adjust</command>
<property>/controls/rudder-trim</property>
<min type="double">-1.0</min>
<step type="double">-0.001</step>
</binding>
</key>
<key n="62">
<name>&gt;</name>
<desc>Rudder Trim Right</desc>
<binding>
<command>property-adjust</command>
<property>/controls/rudder-trim</property>
<max type="double">1.0</max>
<step type="double">0.001</step>
</binding>
</key>
</keyboard>
</input>
</PropertyList>