UWBIns/lib/geo/ch_ENU2ECEF.m

11 lines
289 B
Matlab
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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