Re: A little help

Ron Jensen <[email protected]> Sun, 14 Oct 2012 07:40:17 -0600
Newsgroups gmane.games.flightgear.flightmodel
Message-ID <[email protected]>
On Saturday 13 October 2012 19:22:11 Leandro Santos de Lima wrote:
> Hi, good evening!
>
> I am studing some features of JSBsim and I need to get some flight and
> simutation properties. Many of them I have no trouble but some have been
> hard to get. They are:
>
>
>    - Drag force;
>    - Lift force;
>    - Inside force;
>    - Traction force;
>    - Roll moment;
>    - Yaw moment and
>    - Pitch moment.
>
> I have used a property-list protocol like this:
>
> <PropertyList>
>
> >   <generic>
> >     <output>
> >       <binary_mode>false</binary_mode>
> >       <var_separator>\t</var_separator>
> >       <line_separator>\r\n</line_separator>
> >       <preamble>t\t VT\t alfa\t beta\t phi\t theta\t psi\t P\t Q\t R\t
> > H\t deltaA\t deltaE\t deltaR\t D\t L\t Y\t T\t \bar{L} M\t N\t</preamble>
> > <postamble></postamble>
> >
> >   <chunk>
> >         <node>/fdm/jsbsim/sim-time-sec</node>
> >         <type>float</type>
> >         <format>%.4f</format>
> >       </chunk>
> >
> >   <chunk>
> >         <node>/velocities/airspeed-kt</node>
> >         <type>float</type>
> >         <format>%.4f</format>
> >       </chunk>
>
> but I have no idea of the property node to get those properties.
>
>
> Could someone help me?
>
> All the best,
> Leandro Lima

Assuming you're using FlightGear, look in /fdm/jsbsim, you'll find these 
folders:

    accelerations - output accelerations
    aero - working folder for aerodynamics
    atmosphere - output on what the atmosphere is locally
    attitude - yaw pitch roll
    fcs - working folder for the flight control system
*   forces - forces acting on the model in various frames 
    gear - working folder for contact points
    ic - initial conditions
    inertia - vehicle mass and cg
    inertial - navigation stuff
    metrics - data on vehicle lengths and areas
*   moments - moments acting on the model in various frames
    position - output position
    propulsion - working folder for engines and thrusters
    simulation - simulation control stuff
    systems - model systems, fuel control or other things
    velocities - output velocities

It sounds like you're looking for:
(the w in fwx is for wind frame)
    forces/fwx-aero-lbs == drag
    forces/fwy-aero-lbs == side 
    forces/fwz-aero-lbs == lift
(the b in fbx is for body frame)
    forces/fbx-prop-lbs == thrust (longitudinal) 
    forces/fby-prop-lbs == side component of thrust
    forces/fbz-prop-lbs == vertical component of thrust

    moments/l-total-lbsft == roll moment
    moments/m-total-lbsft == pitch moment
    moments/n-total-lbsft == yaw moment

Hope that helped,

Ron

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev