Tony Peden writes:
> > The units don't really matter. I can convert between them just fine.
> > What I'm confused by is the API for how to tell which units are being
> > used. JSBSim does this in FGInitialConditions, but I got a little
> > lost trying to figure out where the information there comes from.
>
> Which information?
He means which velocity is normative.
Andy, you can just stick with properties and look at
/sim/startup/speed-set to find out which speed to use:
'knots'
- get the calibrated airspeed from /velocities/airspeed-kt ("kcas"
would be a better value here)
'UVW'
- get the local velocities from /velocities/uBody-fps,
/velocities/vBody-fps, and /velocities/wBody-fps
'NED'
- get the NED velocities from /velocities/speed-north-fps,
/velocities/speed-east-fps, and /velocities/speed-down-fps
'mach'
- get the current mach number from /velocities/mach
I make no attempt to justify this system, much less to claim that it's
elegant, but it does work.
You should also look at the /sim/startup/onground and
/sim/startup/trim properties to see how you should set up the plane.
If the trim property is true, Tony always trims the plane to a steady
state for JSBSim, and people will assume that the same will work with
YASim.
All the best,
David
--
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/
_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel