1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-12-16 05:18:07 +00:00

Merge branch 'next' of github.com:gnss-sdr/gnss-sdr into tow-to-trk

This commit is contained in:
Carles Fernandez
2025-11-22 09:29:56 +01:00
209 changed files with 3896 additions and 10597 deletions

View File

@@ -34,6 +34,7 @@ constexpr double BEIDOU_B1I_CODE_RATE_CPS = 2.046e6; //!< Beidou B1I code ra
constexpr double BEIDOU_B1I_CODE_LENGTH_CHIPS = 2046.0; //!< Beidou B1I code length [chips]
constexpr double BEIDOU_B1I_CODE_PERIOD_S = 0.001; //!< Beidou B1I code period [seconds]
constexpr double BEIDOU_B1I_PREAMBLE_DURATION_S = 0.220;
constexpr double BEIDOU_B1I_OPT_ACQ_FS_SPS = 10e6;
constexpr uint32_t BEIDOU_B1I_CODE_PERIOD_MS = 1; //!< Beidou B1I code period [ms]
constexpr uint32_t BEIDOU_B1I_PREAMBLE_LENGTH_BITS = 11;
constexpr uint32_t BEIDOU_B1I_PREAMBLE_LENGTH_SYMBOLS = 220;

View File

@@ -33,6 +33,7 @@ constexpr double BEIDOU_B3I_CODE_RATE_CPS = 10.23e6; //!< BeiDou B3I code r
constexpr double BEIDOU_B3I_CODE_LENGTH_CHIPS = 10230.0; //!< BeiDou B3I code length [chips]
constexpr double BEIDOU_B3I_CODE_PERIOD_S = 0.001; //!< BeiDou B3I code period [seconds]
constexpr double BEIDOU_B3I_PREAMBLE_DURATION_S = 0.220;
constexpr double BEIDOU_B3I_OPT_ACQ_FS_SPS = 10e6;
constexpr uint32_t BEIDOU_B3I_CODE_PERIOD_MS = 1; //!< BeiDou B3I code period [ms]
constexpr uint32_t BEIDOU_B3I_PREAMBLE_LENGTH_BITS = 11;
constexpr uint32_t BEIDOU_B3I_PREAMBLE_LENGTH_SYMBOLS = 220; // **************

View File

@@ -81,6 +81,8 @@ constexpr double GLONASS_L1_CA_CODE_PERIOD_S = 0.001; //!< GLONASS L1 C/A
constexpr double GLONASS_L1_CA_CHIP_PERIOD_S = 1.9569e-06; //!< GLONASS L1 C/A chip period [seconds]
constexpr double GLONASS_L1_CA_SYMBOL_RATE_BPS = 1000.0;
constexpr uint32_t GLONASS_L1_CA_CODE_PEROD_MS = 1;
constexpr uint32_t GLONASS_L2_CA_CODE_PEROD_MS = 1;
constexpr int32_t GLONASS_CA_NBR_SATS = 24; // STRING DATA WITHOUT PREAMBLE
// OBSERVABLE HISTORY DEEP FOR INTERPOLATION

View File

@@ -37,6 +37,7 @@ constexpr double GPS_L2_L_PERIOD_S = 1.5; //!< GPS L2 L code perio
constexpr double GPS_L2_M_CODE_RATE_CPS = 0.5115e6; //!< GPS L2 M code rate [chips/s]
constexpr double GPS_L2_M_PERIOD_S = 0.02; //!< GPS L2 M code period [seconds]
constexpr double GPS_L2_L_CODE_RATE_CPS = 0.5115e6; //!< GPS L2 L code rate [chips/s]
constexpr uint32_t GPS_L2_M_CODE_PERIOD_MS = 20; //!< GPS L2 L code period [ms]
constexpr int32_t GPS_L2_M_CODE_LENGTH_CHIPS = 10230; //!< GPS L2 M code length [chips]
constexpr int32_t GPS_L2_L_CODE_LENGTH_CHIPS = 767250; //!< GPS L2 L code length [chips]
constexpr int32_t GPS_L2_CNAV_DATA_PAGE_BITS = 300; //!< GPS L2 CNAV page length, including preamble and CRC [bits]

View File

@@ -29,18 +29,6 @@
#endif
Glonass_Gnav_Navigation_Message::Glonass_Gnav_Navigation_Message()
{
auto gnss_sat = Gnss_Satellite();
std::string _system("GLONASS");
// TODO SHould number of channels be hardcoded?
for (uint32_t i = 1; i < 14; i++)
{
satelliteBlock[i] = gnss_sat.what_block(_system, i);
}
}
bool Glonass_Gnav_Navigation_Message::CRC_test(std::bitset<GLONASS_GNAV_STRING_BITS>& bits) const
{
uint32_t sum_bits = 0;

View File

@@ -27,7 +27,6 @@
#include "glonass_gnav_utc_model.h"
#include <bitset>
#include <cstdint>
#include <map>
#include <string>
#include <utility> // for pair
#include <vector> // for vector
@@ -49,7 +48,7 @@ public:
/*!
* Default constructor
*/
Glonass_Gnav_Navigation_Message();
Glonass_Gnav_Navigation_Message() = default;
/*!
* \brief Compute CRC for GLONASS GNAV strings
@@ -178,8 +177,6 @@ private:
Glonass_Gnav_Utc_Model gnav_utc_model{}; // UTC model information
Glonass_Gnav_Almanac gnav_almanac[GLONASS_CA_NBR_SATS]{}; // Almanac information for all 24 satellites
std::map<int, std::string> satelliteBlock; // Map that stores to which block the PRN belongs
double d_previous_tb{}; // Previous iode for the Glonass_Gnav_Ephemeris object. Used to determine when new data arrives
double d_previous_Na[GLONASS_CA_NBR_SATS]{}; // Previous time for almanac of the Glonass_Gnav_Almanac object