On Monday 16 August 2010 21:19:35 Ron Jensen wrote:
> On Monday 16 August 2010 20:58:44 Jon S. Berndt wrote:

> > What's your second thought?

O.k.  third thought.  An FCS function (so it will work in
current flightgear) applied by external forces at the correct area...  I'm
working up an example of this idea now..

The following code is built around a 1700 hp engine pushing 67 inHg as an 
example.  It seems to work in FlightGear but hasn't been extensively 
validated.  Keep the direction vector normalized if you adjust that...

Ron

Paste the channel below into your <flight_control> section

    <channel name="exhaust thrust">
     <fcs_function name="aero/function/engine-exhaust-thrust">
      <function>
       <product>
        <property>propulsion/engine/power-hp</property>
        <value>0.000588</value> <!-- 1/1700 hp to nomalize engine/power-hp -->
        <property> propulsion/engine/map-inhg </property>
        <value>0.0149</value> <!-- 1/67 inhg to nomalize engine/map-inhg -->
        <value> 70 </value> <!-- 70 lbs of thrust at full power and map -->
       </product>
      </function>
      <output> external_reactions/exhaust-thrust/magnitude </output> 
     </fcs_function>
    </channel>

And then add an external_reactions section between <flight_control> and 
<aerodynamics>: 

  <external_reactions>
    <force name="exhaust-thrust" frame="BODY">
      <location unit="IN">
        <x>  96.5 </x> <!-- this is the CG for the example aircraft -->
        <y>    0.0 </y>
        <z>    -9.0 </z>
      </location>
      <direction>
        <x>    1.0 </x> <!-- straight down the aircraft longitudinal axis -->
        <y>    0.0 </y>
        <z>    0.0 </z>
      </direction>
    </force> 
  </external_reactions>

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to