Coordinate Transformations Question

Click For Summary
Coordinate transformations are essential for accurately aligning the camera's orientation with the target on the ground as the plane moves. After converting geographic coordinates to ECEF, simply calculating the vector between the aircraft and the target does not account for the aircraft's pitch and bank angles. To achieve the correct orientation, matrix transformations are necessary to align the coordinate systems. This ensures that the target's coordinates are adjusted according to the aircraft's attitude. Understanding this process is crucial for effective navigation and targeting in aerial applications.
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.
 
Thread 'How to define a vector field?'
Hello! In one book I saw that function ##V## of 3 variables ##V_x, V_y, V_z## (vector field in 3D) can be decomposed in a Taylor series without higher-order terms (partial derivative of second power and higher) at point ##(0,0,0)## such way: I think so: higher-order terms can be neglected because partial derivative of second power and higher are equal to 0. Is this true? And how to define vector field correctly for this case? (In the book I found nothing and my attempt was wrong...

Similar threads

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