Hi,
Stuart Buchanan schrieb am 11.11.2007 19:17:
Heiko Schulz wrote:
So much as I know, there are some clubs using a Pitts
for aerotowing.

Yes, I am sure I saw it myself.
I didn't know that - but know knowledge of glider towing is limited to the 
small number of clubs around our airfield. Thanks for pointing it out. I'm glad 
there is another use for the Pitts!

Maik - please go ahead and add aerotow if you have time/inclination.  I've just 
about used up my FlightGear dev time for the month ;)

Please find enclosed a diff. (I am not sure about the correct position of the hitch) .

Maik
? pittss1c.diff
Index: pittss1c-set.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/pittss1c/pittss1c-set.xml,v
retrieving revision 1.1
diff -u -p -r1.1 pittss1c-set.xml
--- pittss1c-set.xml    10 Nov 2007 17:18:47 -0000      1.1
+++ pittss1c-set.xml    11 Nov 2007 19:12:15 -0000
@@ -45,6 +45,14 @@ model, instrument panel, and external 3D
    <help>
      <title>Pitts S1C</title>
      <line></line>
+     <key>
+       <name>o</name>
+       <desc>connect tow cable</desc>
+     </key>
+     <key>
+       <name>O</name>
+       <desc>disconnect tow cable</desc>
+     </key>
      <line>Aerobatic Biplane, with 180hp Lycoming O-360</line>
      <line></line>
      <line>Stall: 57mph</line>
@@ -52,6 +60,30 @@ model, instrument panel, and external 3D
      <line>Vne: 203</line>
      <line>Rate of climb: 2650fpm</line>
    </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-->
+      <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>
 
  <yasim>
@@ -104,5 +136,27 @@ model, instrument panel, and external 3D
     <pilot-gmin>1.0</pilot-gmin>
     <pilot-gmax>1.0</pilot-gmax>
   </accelerations>
+<input>
+  <keyboard>
+    <key n="79">
+      <name>O</name>
+      <desc>Open aerotow hook</desc>
+      <binding>
+        <command>property-assign</command>
+        <property>/sim/hitches/aerotow/open</property>
+        <value type="bool">true</value>
+      </binding>
+    </key>
+    <key n="111">
+      <name>o</name>
+      <desc>Lock aerotow hook</desc>
+      <binding>
+        <command>property-assign</command>
+        <property>/sim/hitches/aerotow/open</property>
+        <value type="bool">false</value>
+      </binding>
+    </key>
+  </keyboard>
+</input>
 
 </PropertyList>
Index: pittss1c.xml
===================================================================
RCS file: /var/cvs/FlightGear-0.9/data/Aircraft/pittss1c/pittss1c.xml,v
retrieving revision 1.1
diff -u -p -r1.1 pittss1c.xml
--- pittss1c.xml        10 Nov 2007 17:18:47 -0000      1.1
+++ pittss1c.xml        11 Nov 2007 19:12:16 -0000
@@ -113,4 +113,8 @@ YASim aerodynamic model for a Pitts S1C
   <!-- pilot -->
   <weight x="-2.4" y="0" z="-0.0" mass-prop="/yasim/pitts/pilot-lb"/>
 
+  <hitch name="aerotow" x="-4.5" y="0" z="-0.3"  
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"/>
+  </hitch>
+
 </airplane>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to