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

12 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 [E, N, U] = ch_ECEF2ENU(XYZ, lat0, lon0, h0)
% ECEF坐标转ENU
% lat0, lon0, h0: 起始点经纬高, 经纬度为rad 高度为m
% XYZ ECEF坐标 单位为m
% ENU距离 单位为m
[lat, lon, h] = ch_ECEF2LLA(XYZ);
[E, N, U] = ch_LLA2ENU(lat, lon, h, lat0, lon0, h0);
end