Hi,
the winch start/aerotow patch for YASim is in cvs now.
Soon we will have a YASim glider (AJ is working on a bocian). If you
want to use the Sgs233, you can use the attached files (need to be
placed in data\Aircraft\sgs233). The config is not optimized to match
the performance of the reals sgs. But you can do winch start and aerotow
with it. (The "new" aircraft is called "sgs233y").
Maik
<?xml version="1.0"?>
<PropertyList>
<sim>
<description>SGS233 with dummy yasim config</description>
<author>D. Culp, Captain Slug (3D), (FDM: AJ MacLeod, Maik Justus)</author>
<status>alpha</status>
<flight-model>yasim</flight-model>
<aero>sgs233-yasim</aero>
<startup>
<splash-texture>Aircraft/sopwithCamel/splash.rgb</splash-texture>
</startup>
<sound>
<path>Aircraft/sgs233/glider-sound.xml</path>
</sound>
<virtual-cockpit archive="y">true</virtual-cockpit>
<allow-toggle-cockpit archive="y">false</allow-toggle-cockpit>
<model>
<!--<path>Aircraft/Bocian/Models/bocian-model.xml</path>-->
<path>Aircraft/sgs233/Models/sgs233.ac</path>
</model>
<panel>
<path>Aircraft/sgs233/Panels/glider-panel.xml</path>
<visibility archive="y">true</visibility>
<x-offset>256</x-offset>
</panel>
<!--
<ai>
<scenario>thermal_demo</scenario>
</ai>
-->
<view n="0">
<internal archive="y">true</internal>
<config>
<pitch-offset-deg>0.0</pitch-offset-deg>
<x-offset-m archive="y">0.0</x-offset-m> <!--Right-->
<y-offset-m archive="y">0.13</y-offset-m> <!--Up-->
<z-offset-m archive="y">-1.04</z-offset-m> <!--Back-->
</config>
</view>
<view n="1">
<config>
<target-z-offset-m archive="y" type="double">0.0</target-z-offset-m>
</config>
</view>
<view n="2">
<config>
<target-z-offset-m archive="y" type="double">0.0</target-z-offset-m>
</config>
</view>
<view n="3">
<config>
<target-z-offset-m archive="y" type="double">0.0</target-z-offset-m>
</config>
</view>
<view n="4">
<config>
<target-z-offset-m archive="y" type="double">0.0</target-z-offset-m>
</config>
</view>
<view n="5">
<config>
<target-y-offset-m archive="y" type="double">0.3</target-y-offset-m>
</config>
</view>
<help>
<title>Bocian</title>
<key>
<name>Ctrl-w</name>
<desc>Place Winch 1000m in front of aircraft (on ground)</desc>
</key>
<key>
<name>w</name>
<desc>increase winch speed (decreases slowly after release)</desc>
</key>
<key>
<name>W</name>
<desc>toggles Winch-Hook. For winch start: press Ctrl-W, hold w, W for tow release</desc>
</key>
<key>
<name>Ctrl-t</name>
<desc>Find aircraft for aerotow (must be within 60m)</desc>
</key>
<key>
<name>T</name>
<desc>toggles aerotow-hook. For aerotow: place glider within 60m to another aircraft, press Ctrl-t</desc>
</key>
</help>
<hitches>
<!-- make sure some properties do exist, when the list for multiplayer transfere is defined-->
<!-- they need to be in the same value, as they are initilized in the FDM, to get the same values after reset
should fix this somehow-->
<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>
<winch>
<place type="bool">false</place>
</winch>
<aerotow>
<find-aircraft type="bool">false</find-aircraft>
</aerotow>
</controls>
<input>
<keyboard>
<key n="23">
<name>Ctrl-w</name>
<desc>Place Winch 1000m in front of aircraft</desc>
<binding>
<command>property-assign</command>
<property>/controls/winch/place</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/winch/place</property>
<value type="bool">false</value>
</binding>
</mod-up>
</key>
<key n="87">
<name>W</name>
<desc>toggles winch hook</desc>
<binding>
<command>nasal</command>
<script>
var p = "/sim/hitches/winch/open";
setprop(p, !getprop(p));
</script>
</binding>
</key>
<key n="119">
<name>w</name>
<desc>increase winch speed (decreases slowly after release)</desc>
<binding>
<command>nasal</command>
<script>interpolate("/sim/hitches/winch/winch/rel-speed", 1.0, 2)</script>
</binding>
<mod-up>
<binding>
<command>nasal</command>
<script>interpolate("/sim/hitches/winch/winch/rel-speed", 0.0, 2)</script>
</binding>
</mod-up>
</key>
<key n="20">
<name>Ctrl-t</name>
<desc>Find aircraft for aerotow (must be within 60m)</desc>
<binding>
<command>property-assign</command>
<property>/controls/aerotow/find-aircraft</property>
<value type="bool">true</value>
</binding>
<mod-up>
<binding>
<command>property-assign</command>
<property>/controls/aerotow/find-aircraft</property>
<value type="bool">false</value>
</binding>
</mod-up>
</key>
<key n="84">
<name>T</name>
<desc>toggles aerotow hook</desc>
<binding>
<command>nasal</command>
<script>
var p = "/sim/hitches/aerotow/open";
setprop(p, !getprop(p));
</script>
</binding>
</key>
<key n="116">
<name>t</name>
<desc>bind this key, don't time warp</desc>
<binding>
<command>nasal</command>
<script>
var p = "/sim/hitches/aerotow/open";
setprop(p, !getprop(p));
</script>
</binding>
</key>
</keyboard>
</input>
</PropertyList>
<?xml version="1.0"?>
<airplane mass="718.7">
<!-- Approach configuration -->
<approach speed="30" aoa="7" glide-angle="5">
</approach>
<!-- Cruise configuration -->
<cruise speed="50" alt="5000" glide-angle="3">
</cruise>
<!-- pilot's eyepoint -->
<cockpit x="-1.17" y="0" z="0.51"/>
<fuselage ax="0.0" ay="0.0" az="0.5" bx="-7.37" by="0.0" bz="0.5"
width="0.665" taper="0.28" midpoint="0.225"/>
<wing x="-3.19" y="0.35" z="0.24" taper="0.15" incidence="5.0" twist="-2.5"
length="8.72" chord="1.77" sweep="-5" dihedral="5" >
<stall aoa="30" width="12" peak="1.5"/>
<flap0 start="0.43" end="0.97" lift="1.3" drag="1.1"/>
<spoiler start="0.24" end="0.38" lift="0" drag="1.5"/>
<control-input axis="/controls/flight/aileron" control="FLAP0" split="true"/>
<control-output control="FLAP0" side="left"
prop="surface-positions/left-aileron-pos-norm"/>
<control-output control="FLAP0" side="right"
prop="surface-positions/right-aileron-pos-norm"/>
<control-speed control="FLAP0" transition-time="0.8"/>
<control-input axis="/controls/flight/speedbrake" control="SPOILER"/>
<control-output control="SPOILER" prop="/surface-positions/speedbrake-pos-norm"/>
<control-speed control="SPOILER" transition-time="1.5"/>
</wing>
<hstab x="-6.85" y="0.09" z="0.44" taper="0.2"
length="1.94" chord="1.06" sweep="0" incidence="5.0" effectiveness="1.8">
<stall aoa="30" width="16" peak="1.5"/>
<flap0 start="0.0" end="0.89" lift="1.6" drag="1.3"/>
<control-input axis="/controls/flight/elevator" control="FLAP0"/>
<control-input axis="/controls/flight/elevator-trim" control="FLAP0"/>
<control-output control="FLAP0" prop="/surface-positions/elevator-pos-norm"/>
</hstab>
<vstab x="-7.35" y="0" z="-0.13" taper="0.19" effectiveness="2.5"
length="1.77" chord="1.66" sweep="0">
<stall aoa="15" width="14" peak="1.5"/>
<flap0 start="0" end="0.88" lift="1.6" drag="1.3"/>
<control-input axis="/controls/flight/rudder" square="true" control="FLAP0" invert="true"/>
<control-input axis="/controls/flight/rudder-trim" control="FLAP0" invert="true"/>
<control-output control="FLAP0" prop="/surface-positions/rudder-pos-norm"
min="1" max="-1"/>
</vstab>
<!-- only temporary, produces no thrust, but yasim do not start without...have to look for this-->
<jet x="-3.2" y="0" z="-0.45"
mass="1"
thrust="1"
n1-idle="55" n1-max="56" n2-idle="55" n2-max="56"
exhaust-speed="100"
rotation="0">
<actionpt x="-5.8" y="0" z="0"/>
<!--<control-input axis="/controls/engines/engine[0]/throttle" control="THROTTLE"/>-->
</jet>
<tank x="-3" y="0" z="0" jet="true" capacity="1"/>
<!-- nose skid -->
<gear x="-0.0" y="0" z="-0.42" compression="0.05" spring="1" damp="2"
dfric="0.1" sfric ="0.12" >
</gear>
<!-- main wheel-->
<gear x="-1.34" y="0" z="-0.77" compression="0.1" spring="1" damp="1"
dfric="0.07" sfric ="0.08">
</gear>
<!-- Tail skid -->
<gear x="-6.88" y="0" z="+0.21" compression="0.05" dfric="0.1" sfric ="0.12" damp="2" skid="1">
</gear>
<!-- pilots -->
<ballast x="-1.15" y="0" z="0.3" mass="140"/>
<ballast x="-1.86" y="0" z="0.4" mass="140"/>
<!-- hitch -->
<hitch name="winch" x="-1.3" y="0" z="-0.51">
<tow length="51" weight-per-meter="0.1" elastic-constant="40000" break-force="10000"/>
<!-- 4.5mm steel wire-->
<winch max-tow-length="1000" min-tow-length="1" initial-tow-length="1000" max-winch-speed="40" power="150" max-force="6000" />
<control-input axis="/controls/winch/place" control="PLACEWINCH"/>
</hitch>
<hitch name="aerotow" x="0" y="0" z="-0" force-is-calculated-by-other="0">
<tow length="60" weight-per-meter="0.035" elastic-constant="9000" break-force="10000" mp-auto-connect-period="0.0"/>
<winch max-tow-length="1000" min-tow-length="60" initial-tow-length="60"/>
<control-input axis="/controls/aerotow/find-aircraft" control="FINDAITOW"/>
</hitch>
</airplane>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel