Galileo navigation queues ready and some code cleaning and doxigen documentation

git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@403 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
Javier Arribas
2013-08-15 15:14:17 +00:00
parent ad6210a900
commit d070b4a389
6 changed files with 157 additions and 446 deletions
@@ -506,6 +506,61 @@ void Galileo_Navigation_Message::split_page(const char *page, int flag_even_word
}
bool Galileo_Navigation_Message::have_new_ephemeris()
{
//ToDo: Check if whe have a new ephemeris data set stored in the galileo navigation class
return false;
}
bool Galileo_Navigation_Message::have_new_iono()
{
//ToDo: Check if whe have a new iono data set stored in the galileo navigation class
return false;
}
bool Galileo_Navigation_Message::have_new_utc_model()
{
//ToDo: Check if whe have a new utc data set stored in the galileo navigation class
return false;
}
bool Galileo_Navigation_Message::have_new_almanac()
{
//ToDo: Check if whe have a new almanac data set stored in the galileo navigation class
return false;
}
Galileo_Ephemeris Galileo_Navigation_Message::get_ephemeris()
{
Galileo_Ephemeris ephemeris;
//ToDo:: fill the object
return ephemeris;
}
Galileo_Iono Galileo_Navigation_Message::get_iono()
{
Galileo_Iono iono;
//ToDo:: fill the object
return iono;
}
Galileo_Utc_Model Galileo_Navigation_Message::get_utc_model()
{
Galileo_Utc_Model utc_model;
//ToDo:: fill the object
return utc_model;
}
Galileo_Almanac Galileo_Navigation_Message::get_almanac()
{
Galileo_Almanac almanac;
//ToDo:: fill the object
return almanac;
}
int Galileo_Navigation_Message::page_jk_decoder(char *data_jk)
{
std::cout << "--------------------------------------------------------------------------" << endl;
@@ -43,6 +43,12 @@
#include <cmath>
#include <utility>
// Galileo Navigation Message structures
#include "galileo_ephemeris.h"
#include "galileo_iono.h"
#include "galileo_almanac.h"
#include "galileo_utc_model.h"
#include "Galileo_E1.h"
@@ -205,15 +211,61 @@ public:
double TOW_0;
/*
* \brief Takes in input a page (Odd or Even) of 120 bit, split it according ICD 4.3.2.3 and join Data_k with Data_j
*/
void split_page(const char *page, int flag_even_word);
/*
* \brief Takes in input Data_jk (128 bit) and split it in ephemeris parameters according ICD 4.3.5
*/
int page_jk_decoder(char *data_jk);
void split_page(const char *page, int flag_even_word); /* Takes in input a page (Odd or Even) of 120 bit, split it according ICD 4.3.2.3 and join Data_k with Data_j*/
int page_jk_decoder(char *data_jk); /* Takes in input Data_jk (128 bit) and split it in ephemeris parameters according ICD 4.3.5*/
/*
* \brief Write doxigen function description here
*/
void reset();
/*
* \brief Returns true if new Ephemeris has arrived. The flag is set to false when the function is executed
*/
bool have_new_ephemeris();
/*
* \brief Returns true if new Iono model has arrived. The flag is set to false when the function is executed
*/
bool have_new_iono();
/*
* \brief Returns true if new UTC model has arrived. The flag is set to false when the function is executed
*/
bool have_new_utc_model();
/*
* \brief Returns true if new UTC model has arrived. The flag is set to false when the function is executed
*/
bool have_new_almanac();
/*
* \brief Returns a Galileo_Ephemeris object filled with the latest navigation data received
*/
Galileo_Ephemeris get_ephemeris();
/*
* \brief Returns a Galileo_Iono object filled with the latest navigation data received
*/
Galileo_Iono get_iono();
/*
* \brief Returns a Galileo_Utc_Model object filled with the latest navigation data received
*/
Galileo_Utc_Model get_utc_model();
/*
* \brief Returns a Galileo_Almanac object filled with the latest navigation data received
*/
Galileo_Almanac get_almanac();
/* Default constructor */
Galileo_Navigation_Message();
};