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

small things

parent e6fb46fa
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -16,8 +16,8 @@ class UBloxRaw
RawDataType addDataStream(const std::vector<u_int8_t>& data_stream);
Observations& getObservations();
Navigation& getNavigation();
const Observations& getObservations();
const Navigation& getNavigation();
RawDataType getRawDataType() const;
......@@ -33,12 +33,12 @@ class UBloxRaw
};
inline GNSSUtils::Observations& UBloxRaw::getObservations()
inline const GNSSUtils::Observations& UBloxRaw::getObservations()
{
return obs_;
}
inline GNSSUtils::Navigation& UBloxRaw::getNavigation()
inline const GNSSUtils::Navigation& UBloxRaw::getNavigation()
{
return nav_;
}
......
......@@ -30,11 +30,12 @@ namespace GNSSUtils
output.time = sol.time.time;
output.sec = sol.time.sec;
output.pos = Eigen::Vector3d(sol.rr);
std::cout << "Compute pos: " << output.pos.transpose() << "\n";
output.vel = Eigen::Vector3d(&sol.rr[3]);
output.pos_covar << sol.qr[0], sol.qr[3], sol.qr[5],
sol.qr[3], sol.qr[1], sol.qr[4],
sol.qr[5], sol.qr[3], sol.qr[2];
sol.qr[5], sol.qr[4], sol.qr[2];
//std::cout << "Compute pos: " << output.pos.transpose() << "\n";
//std::cout << "Covariance:\n" << output.pos_covar << "\n";
// XXX: segmentation fault here.
// if (sol.dtr != NULL)
......
......@@ -31,7 +31,7 @@ RawDataType UBloxRaw::addDataStream(const std::vector<u_int8_t>& data_stream)
break;
case OBS: // Observations
//std::cout << "Observations received!\n";
std::cout << "Observations received!\n";
updateObservations();
//std::cout << "Observations updated!\n";
break;
......
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