Question about Direction Cosine Matrix

Click For Summary
SUMMARY

Athar Khan is working on an inertial navigation system and is attempting to convert coordinates from LLH (Latitude, Longitude, Height) to ENU (East-North-Up) using a Direction Cosine Matrix (DCM). The MATLAB code provided includes functions for converting LLH to XYZ and back, but the results of the conversion do not match as expected. The discussion raises a critical question about the validity of using DCM for this conversion and seeks clarification on its fundamental purpose.

PREREQUISITES
  • Understanding of inertial navigation systems
  • Familiarity with coordinate frames: ENU, ECEF (XYZ), and LLH
  • Proficiency in MATLAB programming
  • Knowledge of Direction Cosine Matrix (DCM) applications
NEXT STEPS
  • Research the mathematical principles behind Direction Cosine Matrices
  • Learn about coordinate transformations between LLH and ENU
  • Explore MATLAB functions for geographic coordinate conversions
  • Investigate common pitfalls in using DCM for navigation systems
USEFUL FOR

This discussion is beneficial for engineers and developers working on inertial navigation systems, MATLAB programmers, and anyone involved in geographic coordinate transformations.

stiltz
Messages
1
Reaction score
0
Hi Everyone,

I am facing a basic level problem about direction cosine matrix as I am not an expert in mathmatics. Hope you people will help me..

I am working on inertial navigation system in three coordinate frames :
1. ENU
2. ECEF (XYZ)
3. LLH (Latitude , Longitude , Height)

I want to convert a point in LLH to ENU using Direction Cosine Matrix(from Earth to enu frame)

I have written a piece of code in MATLAB:

enu_orig = [45 0 0]*pi/180; % origin of ENU frame expressed in LLH frame
enu_orig1 = llh2xyz(enu_orig); % origin of ENU frame expressed in XYZ frame

enu = [10 100 0]; % Reference point in ENU frame
xyz = enu2xyz(enu , enu_orig1); % convert to XYZ frame

llh = xyz2llh(xyz); % Convert to LLH frame
dcm = llw2dcm(llh); % Find the Direction Cosine Matrix relating Earth Frame (LLH) to ENU

enu1 = dcm * xyz; % Convert the point back to ENU using DCM



My problem is that :
Can I use DCM in this way for conversion from LLH to ENU frame. If yes then in the above code 'enu' and 'enu1' must be equal. But they are not in my case.

If I can not use DCM then what is the basic purpose of DCM ?


Hope it will be clear ...

Thanks
n Reqards

Athar Khan
 
Physics news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
9K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
3K
  • · Replies 4 ·
Replies
4
Views
6K
  • · Replies 9 ·
Replies
9
Views
4K