Skip to content
Snippets Groups Projects
Commit c3f34678 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

matrix by reference

parent 5282c071
No related branches found
No related tags found
3 merge requests!20new tag,!19new tag,!10Refactor: satellite, snapshot and tdcp
This commit is part of merge request !10. Comments created here will be created in the context of that merge request.
......@@ -17,8 +17,8 @@ namespace GnssUtils
{
Eigen::Vector3d ecefToLatLonAlt(const Eigen::Vector3d& _ecef);
Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon);
Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_ecef);
Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_enu);
Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_ecef);
Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_enu);
void computeEnuEcefFromEcef(const Eigen::Vector3d& _t_ECEF_ENU,
Eigen::Matrix3d& R_ENU_ECEF,
......@@ -28,4 +28,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
Eigen::Vector3d& t_ENU_ECEF);
} // namespace GnssUtils
#endif // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
\ No newline at end of file
#endif // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_
......@@ -21,7 +21,7 @@ Eigen::Vector3d latLonAltToEcef(const Eigen::Vector3d& _latlon)
return ecef;
}
Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_ecef)
Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_ecef)
{
Eigen::Matrix3d cov_enu;
......@@ -38,7 +38,7 @@ Eigen::Matrix3d ecefToEnuCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix
return cov_enu;
}
Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d _cov_enu)
Eigen::Matrix3d enuToEcefCov(const Eigen::Vector3d& _latlon, const Eigen::Matrix3d& _cov_enu)
{
Eigen::Matrix3d cov_ecef;
......@@ -149,4 +149,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt,
t_ENU_ECEF = -R_ENU_ECEF * t_ECEF_ENU;
}
} // namespace GnssUtils
\ No newline at end of file
} // namespace GnssUtils
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