Coordinate Transformations Question

Click For Summary
SUMMARY

The discussion centers on the necessity of coordinate transformations in the context of a plane equipped with a camera on a motorized gimbal. The user seeks clarity on why simple vector calculations between geographic coordinates (Lat/Lon) and ECEF coordinates are insufficient without considering the aircraft's orientation. The solution involves using matrix transformations to align the plane's coordinate system with the Earth's, ensuring accurate targeting despite the aircraft's pitch and bank angles. Key techniques include creating an eye vector, an up vector, and reorthonormalizing the transformation matrix.

PREREQUISITES
  • Understanding of ECEF (Earth-Centered, Earth-Fixed) coordinates
  • Familiarity with matrix transformations and vector mathematics
  • Knowledge of cross products and vector normalization
  • Experience with 3D graphics programming concepts
NEXT STEPS
  • Study matrix transformations in 3D graphics programming
  • Learn about ECEF coordinate system conversions
  • Explore the implementation of look-at matrices in computer graphics
  • Investigate the effects of aircraft orientation on targeting systems
USEFUL FOR

Aerospace engineers, computer graphics developers, and anyone involved in the development of targeting systems for aerial vehicles will benefit from this discussion.

mjb
Messages
2
Reaction score
0
Hi there. This isn't so much a math question as it is a conceptual question. I can't seem to wrap my head around the need for coordinate transformations. *Why* do they need to be done? I think I really need a picture for this, so this might not be the right place to ask, but if you can describe the "why" rather than the "how" that I find in all the papers/books I've found, that would be great.
Basically, the problem that I'm working on is a plane with a camera on a motorized gimbal. This gimbal needs to point to a spot on the ground and remain pointed to that spot as the plane flies through space. So, the first step is to convert the Lat/Lon into ECEF coordinates to get cartesian math. Get that part, no problem. My question is, why can't I just calculate the vector between these two points and call it a day? From everything I've read, I need to rotate the plane's coordinate system to align with the Earth's coordinate system using matrix transformations. But then, if the plane is now "tipped" to be on the same "axes" as the target, and I calculate the vector, it still won't be correct because the plane isn't really tipped! Please forgive me if I'm being rather obtuse here, but any insight that you can give me would be much appreciated.
thanks!
 
Physics news on Phys.org
I've done this very thing in a computer program I made. Essentially you should simply create a matrix using an eye vector and then you have to create an "up" vector. You can
create a matrix using an eye vector and use the z axis as your up vector and then reorthonormalize the matrix, using the calculated binormal and the lookat vector.

There are tonnes of examples on the internet but essentially its going to result in
normalizing the lookat vector, taking a cross product between y-axis and lookat
vector and then calculating the up vector from the binormal and the lookat vector.

Hope that helps
 
Well, in thinking about it more I think I may have figured it out. Forgive me while I think "aloud". After converting the aircraft and target locations to ECEF coordinates, you subtract them to get the vector between them. BUT that vector is only the straight line distance between the two points. It doesn't take into account the orientation of the aircraft, which may very well be pitch up 25 degrees and banked 10 degrees. Therefore to get the new "coordinates" of the target, with respect to the planes' attitude, the transformation needs to be done to get them in the same "plane" (no pun intended ;P ). Any confirmation or correction of this thought is appreciated. thanks.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 41 ·
2
Replies
41
Views
5K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
6K
  • · Replies 40 ·
2
Replies
40
Views
6K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K