Re: [Flightgear-devel] 3-space coordinate transformations

2004-08-24 Thread Andy Ross
David Culp wrote:
Does anyone know of where in the FG code base I can find a function that takes 
a position in 3-space and gives the resulting position after a pitch/roll/yaw 
set of rotations?

I assume this function already exists somewhere, either in SimGear or in an 
FDM.  From what I've managed to learn about the matrices involved, I see that 
there are many more ways of getting this wrong than there are of getting it 
right :)  Especially for me.

 

There's one in YASim, in Glue.cpp.  It uses a slightly different 
cartesian coordinate system (x forward,
y left, z up) than JSBSim does, but I'm pretty sure the euler axes are 
the same.

Andy
___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d


[Flightgear-devel] 3-space coordinate transformations

2004-08-24 Thread David Culp
Does anyone know of where in the FG code base I can find a function that takes 
a position in 3-space and gives the resulting position after a pitch/roll/yaw 
set of rotations?

In case you're wondering, this is needed by the new submodel system.  A 
submodel is an object that has a position (x,y,z) defined relative to the 
center of the user aircraft (say a left-wing drop tank, which is attached to 
the airplane at 1,-8,-3, where x is forward, y is right, and z is up).  If 
the airplane rotates to a certain pitch/roll/yaw, what is the new location of 
the drop tank?  I need to know this so the drop tank can be released from the 
correct world coordinates (lat,lon,alt) no matter the aircraft's orientation.

I assume this function already exists somewhere, either in SimGear or in an 
FDM.  From what I've managed to learn about the matrices involved, I see that 
there are many more ways of getting this wrong than there are of getting it 
right :)  Especially for me.

I'm flexible on the coordinate system.  I know axis conventions might be 
different.


Dave
-- 

David Culp
[EMAIL PROTECTED]


___
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d