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

Added function ecefToPos()

parent 3821734f
No related branches found
No related tags found
2 merge requests!4Resolve "Enable Standard Point Positioning (SPP) computation",!2Resolve "Enable Standard Point Positioning (SPP) computation"
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -4,6 +4,11 @@
#include <vector>
#include <iostream>
#include <memory>
#include <eigen3/Eigen/Dense>
#include <eigen3/Eigen/Geometry>
#include <eigen3/Eigen/Sparse>
#include "observations.h"
#include "navigation.h"
......@@ -17,5 +22,7 @@ namespace GNSSUtils
int getPos(const std::shared_ptr<Observations> & _observations,
const std::shared_ptr<Navigation> & _navigation,
sol_t & _sol);
Eigen::Vector3d ecefToPos(const Eigen::Vector3d & _ecef);
}
#endif
......@@ -36,4 +36,12 @@ namespace GNSSUtils
return stat;
}
Eigen::Vector3d ecefToPos(const Eigen::Vector3d & _ecef)
{
double pos[3];
ecef2pos(&_ecef(0), pos);
return Eigen::Map<Eigen::Vector3d>(pos);
}
}
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