UWBIns/Code/Matlab/lib/geo/ch_ENU2ECEF.m
2025-04-23 11:22:45 +08:00

11 lines
289 B
Matlab
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function XYZ = ch_ENU2ECEF(E, N, U, lat0, lon0, h0)
% ENU 转 ECEF
% lat0, lon0, h0: 起始点经纬高, 经纬度为rad 高度为m
% ENU东北天距离单位为m
% 返回 ECEF坐标 单位m
[lat, lon, h] = ch_ENU2LLA(E, N, U, lat0, lon0, h0);
XYZ = ch_LLA2ECEF(lat, lon, h);
end