how to go from NED to ECI frame?

조회 수: 37 (최근 30일)
Khang Nguyen
Khang Nguyen 2021년 2월 21일
Hello! I am wondering how do you go from NED frame to ECI frame?
I got a NED frame from the WMM block but it say that the dimention of matrix multiplication is not complete.
also I got an error say that the built in fuction ecef2eci does't exist
function ECI = NEDtoECI(mu, l, NED)
DCM = [-sin(mu)*cos(l) -sin(mu)*sin(l) cos(mu) ; -sin(l) cos(l) 0 ; -cos(mu)*cos(l) -cos(mu)*sin(l) -sin(mu)];
dcmtran = DCM.';
ECEF = NED*dcmtran;
utc = [2019 1 4 12 0 0];
ECI = ecef2eci(utc,ECEF);
end
  댓글 수: 6
Khang Nguyen
Khang Nguyen 2023년 4월 20일
편집: Khang Nguyen 2023년 4월 20일
Probally, since this project wes too long ago, I can't remember much! (I wrote this in my first year at University)
But I belive NED (North East Down frame) is a local frame which define by a possition vector in the Geocentric Coordinate. We will need to convert it into the ECEF (Earth Center Earth Fixed frame) frame and then again to the ECI (Earth Center Inertial frame).
Since ECI frame x-direction point torward the vernal equinox and ECEF x-direction point torward the Prime Meridian. Therefore, there is a time dependent component. Since the ECEF is a non-inertial reference frame and ECI is an "Inertial Frame", you will need to do some dynamic math to convert between ECEF and ECI. The code is currently assume that ECI and ECEF at a certain time, and rotate about the ECEF z-axis. This is a good approx, but to be more accurate, the z axis of both frame are slightly not align, therefore you have to rotate the y-axis by a little bit. I am happy to rewrite and update the code after my exam season.
IDK what is your background in dynamic, hope that this make sense.
Jonathan Gadiel Ramírez Martínez
Oh I see, that makes sense Khang, thank you very much!

댓글을 달려면 로그인하십시오.

답변 (1개)

Alan Moses
Alan Moses 2021년 2월 25일
Hi Khang,
The “ecef2eci” is part of the set of functions that require the ‘Aerospace Blockset CubeSat Simulation Library’ Add-on support package. You could download this from the Add-ons manager.
Alternatively, you may also check out the function here in the MathWorks File Exchange.
Hope it helps!

카테고리

Help CenterFile Exchange에서 Coordinate Systems에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by