mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-11-19 00:04:58 +00:00
Update signal generator for glonass
This commit is contained in:
parent
6b7993b844
commit
911c5da12c
@ -36,6 +36,7 @@
|
|||||||
#include "Galileo_E1.h"
|
#include "Galileo_E1.h"
|
||||||
#include "GPS_L1_CA.h"
|
#include "GPS_L1_CA.h"
|
||||||
#include "Galileo_E5a.h"
|
#include "Galileo_E5a.h"
|
||||||
|
#include "Glonass_L1_CA.h"
|
||||||
|
|
||||||
|
|
||||||
using google::LogMessage;
|
using google::LogMessage;
|
||||||
@ -102,6 +103,11 @@ SignalGenerator::SignalGenerator(ConfigurationInterface* configuration,
|
|||||||
vector_length = round(static_cast<float>(fs_in)
|
vector_length = round(static_cast<float>(fs_in)
|
||||||
/ (GPS_L1_CA_CODE_RATE_HZ / GPS_L1_CA_CODE_LENGTH_CHIPS));
|
/ (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)
|
if (item_type_.compare("gr_complex") == 0)
|
||||||
{
|
{
|
||||||
|
@ -293,8 +293,8 @@ int signal_generator_c::general_work (int noutput_items __attribute__((unused)),
|
|||||||
unsigned int out_idx = 0;
|
unsigned int out_idx = 0;
|
||||||
unsigned int i = 0;
|
unsigned int i = 0;
|
||||||
unsigned int k = 0;
|
unsigned int k = 0;
|
||||||
// the intermediate frequency must set by the user
|
// the intermediate frequency must be set by the user
|
||||||
unsigned int freq = 9540000;
|
unsigned int freq = 4e6;
|
||||||
|
|
||||||
for (out_idx = 0; out_idx < vector_length_; out_idx++)
|
for (out_idx = 0; out_idx < vector_length_; out_idx++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user