This twin otter model is very solid. However, a crucial instrument is missing from the cockpit. The DME !.
So i borrowed the dme instrument from the cessna 172 and added it in the otter like so.
Fits nicely there.
But i have a problem. I does not work !. The power comes on becouse i can see the "miles" marking lighting up. But it does not show any distance do the dme like it should. Here is my procedure.
I started by simply copying the dme folder from the cessna instruments folder to the otter instruments folder. Then i added this code to flightdeck.xml (otter instruments folder)
That made the dme instrument visible in the otter.
And then i read in the ki266.xml file (otter instruments dme folder) which said
<!--
This is the ki266 3d instrument.
Modeled after King KI266 DME Indicator
This instrument needs the file
Aircraft/Instruments-3d/ki266/ki266.nas
to be included in your -set.xml nasal section
like this:
<nasal>
<YourAircraft>
<file>Aircraft/Instruments-3d/ki266/ki266.nas</file>
</YourAircraft>
</nasal>
and at least one instance of the ki266 class to be created
in your aircraft nasal code like this:
ki266.new(0); # for your first dme at /instrumentation/dme[0]
ki266.new(1); # if you have another at /instrumentation/dme[1]
Maintainer: Torsten Dreyer
-->So that's what i did. Like this. See the code i added in green. Made no other changes.
The dhc6-set.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--
************************************************************************
de Havilland Twin Otter
Jan 2008 Syd Adams
************************************************************************
-->
<PropertyList include="dhc6-base.xml">
<sim>
<description>Twin Otter (wheels)</description>
<status>developement</status>
<author>Syd Adams</author>
<flight-model>yasim</flight-model>
<aero>dhc6</aero>
<fuel-fraction>0.5</fuel-fraction>
<startup>
<splash-texture>Aircraft/dhc6/splash.png</splash-texture>
</startup>
<model>
<path>Aircraft/dhc6/Models/DHC6.xml</path>
<blunt-nose type="bool">0</blunt-nose>
</model>
<hitches>
<aerotow>
<tow>
<length type="float">60</length>
<elastic-constant type="float">10000</elastic-constant>
<weight-per-m-kg-m type="float">1</weight-per-m-kg-m>
<dist type="float">1</dist>
<connected-to-property-node type="bool"></connected-to-property-node>
<brake-force type="float">100000</brake-force>
<connected-to-ai-or-mp-callsign type ="string">*</connected-to-ai-or-mp-callsign>
<end-force-x type ="float">0</end-force-x>
<end-force-y type ="float">0</end-force-y>
<end-force-z type ="float">0</end-force-z>
</tow>
<speed-in-tow-direction type="float">0</speed-in-tow-direction>
<open type="bool">true</open>
<local-pos-x type="float">0</local-pos-x>
<local-pos-y type="float">0</local-pos-y>
<local-pos-z type="float">0</local-pos-z>
<is-slave type="bool">false</is-slave>
</aerotow>
</hitches>
</sim>
<controls>
<gear>
<brake-parking>1</brake-parking>
</gear>
</controls>
<hitch name="aerotow" x="-6.2" y="0" z="-0.12" force-is-calculated-by-other="1">
<tow length="60" weight-per-meter="0.035" elastic-constant="9000" break-force="10000" mp-auto-connect-period="1.0"/>
<winch max-tow-length="1000" min-tow-length="60" initial-tow-length="60"/>
</hitch>
- Code (): Select all
<nasal>
<dhc6>
<file>dhc6/Models/Instruments/dme/ki266.nas</file>
<script><![CDATA[
ki266.new(0);
aircraft.data.add( "engines/engine[0]/egt-bug-norm" );
]]></script>
</dhc6>
</nasal>
</PropertyList>That's all what i thought was needed to make this work. What am i doing wrong ?. Any ideas would be apprieciated.