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

[debug] print messages

parent 3a51234a
No related branches found
No related tags found
2 merge requests!20new tag,!19new tag
......@@ -42,22 +42,22 @@ void Navigation::freeNavigation()
void Navigation::clearNavigation()
{
// nav_.eph =NULL;
// nav_.geph=NULL;
// nav_.seph=NULL;
// nav_.peph=NULL;
// nav_.pclk=NULL;
// nav_.alm =NULL;
// nav_.tec =NULL;
// nav_.fcb =NULL;
// nav_.n =nav_.nmax =0;
// nav_.ng=nav_.ngmax=0;
// nav_.ns=nav_.nsmax=0;
// nav_.ne=nav_.nemax=0;
// nav_.nc=nav_.ncmax=0;
// nav_.na=nav_.namax=0;
// nav_.nt=nav_.ntmax=0;
// nav_.nf=nav_.nfmax=0;
nav_.eph =NULL;
nav_.geph=NULL;
nav_.seph=NULL;
nav_.peph=NULL;
nav_.pclk=NULL;
nav_.alm =NULL;
nav_.tec =NULL;
nav_.fcb =NULL;
nav_.n =nav_.nmax =0;
nav_.ng=nav_.ngmax=0;
nav_.ns=nav_.nsmax=0;
nav_.ne=nav_.nemax=0;
nav_.nc=nav_.ncmax=0;
nav_.na=nav_.namax=0;
nav_.nt=nav_.ntmax=0;
nav_.nf=nav_.nfmax=0;
}
void Navigation::setNavigation(nav_t _nav)
......
......@@ -49,11 +49,17 @@ const Navigation& UBloxRaw::getNavigation() const {return nav_;}
void UBloxRaw::updateObservations()
{
std::cout << "---------------------------JUST BEFORE!-------------------" << std::endl;
obs_.print();
obs_.clearObservations();
for (int ii = 0; ii < raw_data_.obs.n; ++ii)
{
obs_.addObservation(raw_data_.obs.data[ii]);
}
std::cout << "--------------------------JUST AFTER!---------------------" << std::endl;
obs_.print();
}
void UBloxRaw::updateNavigation()
......
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