mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-19 05:33:02 +00:00
Rename the Galileo_Navigation_Mesaage class to Galileo_Inav_Message for consistency
This commit is contained in:
parent
1298817534
commit
89c7598be4
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "galileo_fnav_message.h"
|
#include "galileo_fnav_message.h"
|
||||||
#include "galileo_navigation_message.h"
|
#include "galileo_inav_message.h"
|
||||||
#include "gnss_satellite.h"
|
#include "gnss_satellite.h"
|
||||||
#include <boost/circular_buffer.hpp>
|
#include <boost/circular_buffer.hpp>
|
||||||
#include <gnuradio/block.h> // for block
|
#include <gnuradio/block.h> // for block
|
||||||
@ -105,7 +105,7 @@ private:
|
|||||||
Gnss_Satellite d_satellite;
|
Gnss_Satellite d_satellite;
|
||||||
|
|
||||||
// navigation message vars
|
// navigation message vars
|
||||||
Galileo_Navigation_Message d_inav_nav;
|
Galileo_Inav_Message d_inav_nav;
|
||||||
Galileo_Fnav_Message d_fnav_nav;
|
Galileo_Fnav_Message d_fnav_nav;
|
||||||
|
|
||||||
double d_delta_t; // GPS-GALILEO time offset
|
double d_delta_t; // GPS-GALILEO time offset
|
||||||
|
@ -16,7 +16,7 @@ set(SYSTEM_PARAMETERS_SOURCES
|
|||||||
galileo_utc_model.cc
|
galileo_utc_model.cc
|
||||||
galileo_ephemeris.cc
|
galileo_ephemeris.cc
|
||||||
galileo_almanac_helper.cc
|
galileo_almanac_helper.cc
|
||||||
galileo_navigation_message.cc
|
galileo_inav_message.cc
|
||||||
beidou_dnav_navigation_message.cc
|
beidou_dnav_navigation_message.cc
|
||||||
beidou_dnav_ephemeris.cc
|
beidou_dnav_ephemeris.cc
|
||||||
sbas_ephemeris.cc
|
sbas_ephemeris.cc
|
||||||
@ -46,7 +46,7 @@ set(SYSTEM_PARAMETERS_HEADERS
|
|||||||
Galileo_FNAV.h
|
Galileo_FNAV.h
|
||||||
Galileo_INAV.h
|
Galileo_INAV.h
|
||||||
galileo_iono.h
|
galileo_iono.h
|
||||||
galileo_navigation_message.h
|
galileo_inav_message.h
|
||||||
sbas_ephemeris.h
|
sbas_ephemeris.h
|
||||||
galileo_fnav_message.h
|
galileo_fnav_message.h
|
||||||
gps_cnav_ephemeris.h
|
gps_cnav_ephemeris.h
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
* \brief Interface of a Galileo EPHEMERIS storage and orbital model functions
|
* \brief Interface of a Galileo EPHEMERIS storage and orbital model functions
|
||||||
* \author Javier Arribas, 2013. jarribas(at)cttc.es
|
* \author Javier Arribas, 2013. jarribas(at)cttc.es
|
||||||
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
||||||
|
*
|
||||||
|
*
|
||||||
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
||||||
@ -18,8 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "galileo_ephemeris.h"
|
#include "galileo_ephemeris.h"
|
||||||
#include "Galileo_E1.h"
|
#include "MATH_CONSTANTS.h"
|
||||||
#include "Galileo_E5b.h"
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* \file galileo_navigation_message.cc
|
* \file galileo_inav_message.cc
|
||||||
* \brief Implementation of a Galileo I/NAV Data message
|
* \brief Implementation of a Galileo I/NAV Data message
|
||||||
* as described in Galileo OS SIS ICD Issue 1.1 (Sept. 2010)
|
* as described in Galileo OS SIS ICD Issue 1.1 (Sept. 2010)
|
||||||
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
||||||
@ -19,7 +19,7 @@
|
|||||||
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "galileo_navigation_message.h"
|
#include "galileo_inav_message.h"
|
||||||
#include <boost/crc.hpp> // for boost::crc_basic, boost::crc_optimal
|
#include <boost/crc.hpp> // for boost::crc_basic, boost::crc_optimal
|
||||||
#include <boost/dynamic_bitset.hpp> // for boost::dynamic_bitset
|
#include <boost/dynamic_bitset.hpp> // for boost::dynamic_bitset
|
||||||
#include <glog/logging.h> // for DLOG
|
#include <glog/logging.h> // for DLOG
|
||||||
@ -31,7 +31,7 @@
|
|||||||
using CRC_Galileo_INAV_type = boost::crc_optimal<24, 0x1864CFBU, 0x0, 0x0, false, false>;
|
using CRC_Galileo_INAV_type = boost::crc_optimal<24, 0x1864CFBU, 0x0, 0x0, false, false>;
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::CRC_test(std::bitset<GALILEO_DATA_FRAME_BITS> bits, uint32_t checksum) const
|
bool Galileo_Inav_Message::CRC_test(std::bitset<GALILEO_DATA_FRAME_BITS> bits, uint32_t checksum) const
|
||||||
{
|
{
|
||||||
CRC_Galileo_INAV_type CRC_Galileo;
|
CRC_Galileo_INAV_type CRC_Galileo;
|
||||||
|
|
||||||
@ -58,7 +58,7 @@ bool Galileo_Navigation_Message::CRC_test(std::bitset<GALILEO_DATA_FRAME_BITS> b
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint64_t Galileo_Navigation_Message::read_navigation_unsigned(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
uint64_t Galileo_Inav_Message::read_navigation_unsigned(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
||||||
{
|
{
|
||||||
uint64_t value = 0ULL;
|
uint64_t value = 0ULL;
|
||||||
const int32_t num_of_slices = parameter.size();
|
const int32_t num_of_slices = parameter.size();
|
||||||
@ -77,7 +77,7 @@ uint64_t Galileo_Navigation_Message::read_navigation_unsigned(std::bitset<GALILE
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint64_t Galileo_Navigation_Message::read_page_type_unsigned(std::bitset<GALILEO_PAGE_TYPE_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
uint64_t Galileo_Inav_Message::read_page_type_unsigned(std::bitset<GALILEO_PAGE_TYPE_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
||||||
{
|
{
|
||||||
uint64_t value = 0ULL;
|
uint64_t value = 0ULL;
|
||||||
const int32_t num_of_slices = parameter.size();
|
const int32_t num_of_slices = parameter.size();
|
||||||
@ -96,7 +96,7 @@ uint64_t Galileo_Navigation_Message::read_page_type_unsigned(std::bitset<GALILEO
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int64_t Galileo_Navigation_Message::read_navigation_signed(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
int64_t Galileo_Inav_Message::read_navigation_signed(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
||||||
{
|
{
|
||||||
int64_t value = 0LL;
|
int64_t value = 0LL;
|
||||||
const int32_t num_of_slices = parameter.size();
|
const int32_t num_of_slices = parameter.size();
|
||||||
@ -127,7 +127,7 @@ int64_t Galileo_Navigation_Message::read_navigation_signed(std::bitset<GALILEO_D
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::read_navigation_bool(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
bool Galileo_Inav_Message::read_navigation_bool(std::bitset<GALILEO_DATA_JK_BITS> bits, const std::vector<std::pair<int32_t, int32_t> >& parameter) const
|
||||||
{
|
{
|
||||||
bool value;
|
bool value;
|
||||||
if (static_cast<int>(static_cast<int>(bits[GALILEO_DATA_JK_BITS - parameter[0].first])) == 1)
|
if (static_cast<int>(static_cast<int>(bits[GALILEO_DATA_JK_BITS - parameter[0].first])) == 1)
|
||||||
@ -142,7 +142,7 @@ bool Galileo_Navigation_Message::read_navigation_bool(std::bitset<GALILEO_DATA_J
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void Galileo_Navigation_Message::split_page(std::string page_string, int32_t flag_even_word)
|
void Galileo_Inav_Message::split_page(std::string page_string, int32_t flag_even_word)
|
||||||
{
|
{
|
||||||
int32_t Page_type = 0;
|
int32_t Page_type = 0;
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ void Galileo_Navigation_Message::split_page(std::string page_string, int32_t fla
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::have_new_ephemeris() // Check if we have a new ephemeris stored in the galileo navigation class
|
bool Galileo_Inav_Message::have_new_ephemeris() // Check if we have a new ephemeris stored in the galileo navigation class
|
||||||
{
|
{
|
||||||
if ((flag_ephemeris_1 == true) and (flag_ephemeris_2 == true) and (flag_ephemeris_3 == true) and (flag_ephemeris_4 == true) and (flag_iono_and_GST == true))
|
if ((flag_ephemeris_1 == true) and (flag_ephemeris_2 == true) and (flag_ephemeris_3 == true) and (flag_ephemeris_4 == true) and (flag_iono_and_GST == true))
|
||||||
{
|
{
|
||||||
@ -224,7 +224,7 @@ bool Galileo_Navigation_Message::have_new_ephemeris() // Check if we have a new
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::have_new_iono_and_GST() // Check if we have a new iono data set stored in the galileo navigation class
|
bool Galileo_Inav_Message::have_new_iono_and_GST() // Check if we have a new iono data set stored in the galileo navigation class
|
||||||
{
|
{
|
||||||
if ((flag_iono_and_GST == true) and (flag_utc_model == true)) // the condition on flag_utc_model is added to have a time stamp for iono
|
if ((flag_iono_and_GST == true) and (flag_utc_model == true)) // the condition on flag_utc_model is added to have a time stamp for iono
|
||||||
{
|
{
|
||||||
@ -236,7 +236,7 @@ bool Galileo_Navigation_Message::have_new_iono_and_GST() // Check if we have a
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::have_new_utc_model() // Check if we have a new utc data set stored in the galileo navigation class
|
bool Galileo_Inav_Message::have_new_utc_model() // Check if we have a new utc data set stored in the galileo navigation class
|
||||||
{
|
{
|
||||||
if (flag_utc_model == true)
|
if (flag_utc_model == true)
|
||||||
{
|
{
|
||||||
@ -248,7 +248,7 @@ bool Galileo_Navigation_Message::have_new_utc_model() // Check if we have a new
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Galileo_Navigation_Message::have_new_almanac() // Check if we have a new almanac data set stored in the galileo navigation class
|
bool Galileo_Inav_Message::have_new_almanac() // Check if we have a new almanac data set stored in the galileo navigation class
|
||||||
{
|
{
|
||||||
if ((flag_almanac_1 == true) and (flag_almanac_2 == true) and (flag_almanac_3 == true) and (flag_almanac_4 == true))
|
if ((flag_almanac_1 == true) and (flag_almanac_2 == true) and (flag_almanac_3 == true) and (flag_almanac_4 == true))
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ bool Galileo_Navigation_Message::have_new_almanac() // Check if we have a new a
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Galileo_Ephemeris Galileo_Navigation_Message::get_ephemeris() const
|
Galileo_Ephemeris Galileo_Inav_Message::get_ephemeris() const
|
||||||
{
|
{
|
||||||
Galileo_Ephemeris ephemeris;
|
Galileo_Ephemeris ephemeris;
|
||||||
ephemeris.flag_all_ephemeris = flag_all_ephemeris;
|
ephemeris.flag_all_ephemeris = flag_all_ephemeris;
|
||||||
@ -314,7 +314,7 @@ Galileo_Ephemeris Galileo_Navigation_Message::get_ephemeris() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Galileo_Iono Galileo_Navigation_Message::get_iono() const
|
Galileo_Iono Galileo_Inav_Message::get_iono() const
|
||||||
{
|
{
|
||||||
Galileo_Iono iono;
|
Galileo_Iono iono;
|
||||||
// Ionospheric correction
|
// Ionospheric correction
|
||||||
@ -338,7 +338,7 @@ Galileo_Iono Galileo_Navigation_Message::get_iono() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Galileo_Utc_Model Galileo_Navigation_Message::get_utc_model() const
|
Galileo_Utc_Model Galileo_Inav_Message::get_utc_model() const
|
||||||
{
|
{
|
||||||
Galileo_Utc_Model utc_model;
|
Galileo_Utc_Model utc_model;
|
||||||
// Word type 6: GST-UTC conversion parameters
|
// Word type 6: GST-UTC conversion parameters
|
||||||
@ -360,7 +360,7 @@ Galileo_Utc_Model Galileo_Navigation_Message::get_utc_model() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Galileo_Almanac_Helper Galileo_Navigation_Message::get_almanac() const
|
Galileo_Almanac_Helper Galileo_Inav_Message::get_almanac() const
|
||||||
{
|
{
|
||||||
Galileo_Almanac_Helper almanac;
|
Galileo_Almanac_Helper almanac;
|
||||||
// Word type 7: Almanac for SVID1 (1/2), almanac reference time and almanac reference week number
|
// Word type 7: Almanac for SVID1 (1/2), almanac reference time and almanac reference week number
|
||||||
@ -419,7 +419,7 @@ Galileo_Almanac_Helper Galileo_Navigation_Message::get_almanac() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int32_t Galileo_Navigation_Message::page_jk_decoder(const char* data_jk)
|
int32_t Galileo_Inav_Message::page_jk_decoder(const char* data_jk)
|
||||||
{
|
{
|
||||||
const std::string data_jk_string = data_jk;
|
const std::string data_jk_string = data_jk;
|
||||||
const std::bitset<GALILEO_DATA_JK_BITS> data_jk_bits(data_jk_string);
|
const std::bitset<GALILEO_DATA_JK_BITS> data_jk_bits(data_jk_string);
|
@ -1,5 +1,5 @@
|
|||||||
/*!
|
/*!
|
||||||
* \file galileo_navigation_message.h
|
* \file galileo_inav_message.h
|
||||||
* \brief Implementation of a Galileo I/NAV Data message
|
* \brief Implementation of a Galileo I/NAV Data message
|
||||||
* as described in Galileo OS SIS ICD Issue 1.2 (Nov. 2015)
|
* as described in Galileo OS SIS ICD Issue 1.2 (Nov. 2015)
|
||||||
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
* \author Mara Branzanti 2013. mara.branzanti(at)gmail.com
|
||||||
@ -19,11 +19,9 @@
|
|||||||
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef GNSS_SDR_GALILEO_NAVIGATION_MESSAGE_H
|
#ifndef GNSS_SDR_GALILEO_INAV_MESSAGE_H
|
||||||
#define GNSS_SDR_GALILEO_NAVIGATION_MESSAGE_H
|
#define GNSS_SDR_GALILEO_INAV_MESSAGE_H
|
||||||
|
|
||||||
#include "Galileo_E1.h"
|
|
||||||
#include "Galileo_E5b.h"
|
|
||||||
#include "Galileo_INAV.h"
|
#include "Galileo_INAV.h"
|
||||||
#include "galileo_almanac_helper.h"
|
#include "galileo_almanac_helper.h"
|
||||||
#include "galileo_ephemeris.h"
|
#include "galileo_ephemeris.h"
|
||||||
@ -41,10 +39,10 @@
|
|||||||
* Galileo Open Service Signal in Space Interface Control Document (OS SIS ICD), Issue 1.2 (Nov 2015).
|
* Galileo Open Service Signal in Space Interface Control Document (OS SIS ICD), Issue 1.2 (Nov 2015).
|
||||||
* See https://www.gsc-europa.eu/sites/default/files/sites/all/files/Galileo-OS-SIS-ICD.pdf
|
* See https://www.gsc-europa.eu/sites/default/files/sites/all/files/Galileo-OS-SIS-ICD.pdf
|
||||||
*/
|
*/
|
||||||
class Galileo_Navigation_Message
|
class Galileo_Inav_Message
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Galileo_Navigation_Message() = default;
|
Galileo_Inav_Message() = default;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* \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
|
* \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
|
||||||
@ -353,4 +351,4 @@ private:
|
|||||||
bool flag_GGTO_4{};
|
bool flag_GGTO_4{};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // GNSS_SDR_GALILEO_NAVIGATION_MESSAGE_H
|
#endif // GNSS_SDR_GALILEO_INAV_MESSAGE_H
|
@ -21,8 +21,7 @@
|
|||||||
|
|
||||||
#include "convolutional.h"
|
#include "convolutional.h"
|
||||||
#include "galileo_fnav_message.h"
|
#include "galileo_fnav_message.h"
|
||||||
#include "galileo_navigation_message.h"
|
#include "galileo_inav_message.h"
|
||||||
#include <armadillo>
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include <volk_gnsssdr/volk_gnsssdr.h>
|
#include <volk_gnsssdr/volk_gnsssdr.h>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
@ -34,7 +33,7 @@
|
|||||||
class Galileo_FNAV_INAV_test : public ::testing::Test
|
class Galileo_FNAV_INAV_test : public ::testing::Test
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
Galileo_Navigation_Message INAV_decoder;
|
Galileo_Inav_Message INAV_decoder;
|
||||||
Galileo_Fnav_Message FNAV_decoder;
|
Galileo_Fnav_Message FNAV_decoder;
|
||||||
// vars for Viterbi decoder
|
// vars for Viterbi decoder
|
||||||
int32_t *out0, *out1, *state0, *state1;
|
int32_t *out0, *out1, *state0, *state1;
|
||||||
|
Loading…
Reference in New Issue
Block a user