1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 20:50:33 +00:00

Update signal generator for glonass

This commit is contained in:
Gastd 2017-07-20 18:41:00 -03:00
parent 11447716d4
commit f0ce091149
2 changed files with 8 additions and 2 deletions

View File

@ -36,6 +36,7 @@
#include "Galileo_E1.h"
#include "GPS_L1_CA.h"
#include "Galileo_E5a.h"
#include "Glonass_L1_CA.h"
using google::LogMessage;
@ -102,6 +103,11 @@ SignalGenerator::SignalGenerator(ConfigurationInterface* configuration,
vector_length = round((float)fs_in
/ (GPS_L1_CA_CODE_RATE_HZ / GPS_L1_CA_CODE_LENGTH_CHIPS));
}
else if (std::find(system.begin(), system.end(), "R") != system.end())
{
vector_length = round((float)fs_in
/ (GLONASS_L1_CA_CODE_RATE_HZ / GLONASS_L1_CA_CODE_LENGTH_CHIPS));
}
if (item_type_.compare("gr_complex") == 0)
{

View File

@ -294,8 +294,8 @@ int signal_generator_c::general_work (int noutput_items __attribute__((unused)),
unsigned int out_idx = 0;
unsigned int i = 0;
unsigned int k = 0;
// the intermediate frequency must set by the user
unsigned int freq = 9540000;
// the intermediate frequency must be set by the user
unsigned int freq = 4e6;
for (out_idx = 0; out_idx < vector_length_; out_idx++)
{