Skip to content
Snippets Groups Projects
Commit bcd073e8 authored by Pep Martí Saumell's avatar Pep Martí Saumell
Browse files

[utils] transformations

parent 626cddbc
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!8Resolve "File restructuration"
This commit is part of merge request !8. Comments created here will be created in the context of that merge request.
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment