diff --git a/src/utils/transformations.cpp b/src/utils/transformations.cpp index fa8c0e247fa7d1107afe0f17501ee9d8324b3341..c12f2db6219acdb3ac40013abd636edaead189f8 100644 --- a/src/utils/transformations.cpp +++ b/src/utils/transformations.cpp @@ -2,6 +2,9 @@ using namespace GNSSUtils; +namespace GNSSUtils +{ + Eigen::Vector3d ecefToLatLonAlt(const Eigen::Vector3d& _ecef) { Eigen::Vector3d pos; @@ -10,10 +13,10 @@ Eigen::Vector3d ecefToLatLonAlt(const Eigen::Vector3d& _ecef) return pos; } -Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _pos) +Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon) { Eigen::Vector3d ecef; - pos2ecef(_pos.data(), ecef.data()); + pos2ecef(_latlon.data(), ecef.data()); return ecef; } @@ -144,4 +147,6 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt, Eigen::Vector3d t_ECEF_ENU = latLonAltToEcef(_ENU_latlonalt); t_ENU_ECEF = -R_ENU_ECEF * t_ECEF_ENU; -} \ No newline at end of file +} + +} // namespace GNSSUtils \ No newline at end of file