mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-10-28 22:17:39 +00:00
Start migration to GNU Radio 3.7 new C++ API. This commit replaces some components of gnuradio-core by the new components gr-blocks, gr-fft and gr-filter.
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@282 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
#include "configuration_interface.h"
|
||||
#include "gps_l1_ca_observables_cc.h"
|
||||
#include <gnuradio/gr_io_signature.h>
|
||||
#include <gnuradio/gr_stream_to_vector.h>
|
||||
#include <gnuradio/gr_vector_to_stream.h>
|
||||
//#include <gnuradio/gr_stream_to_vector.h>
|
||||
//#include <gnuradio/gr_vector_to_stream.h>
|
||||
#include <glog/log_severity.h>
|
||||
#include <glog/logging.h>
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ int gps_l1_ca_observables_cc::general_work (int noutput_items, gr_vector_int &ni
|
||||
current_gnss_synchro[i].Pseudorange_symbol_shift = 0.0;
|
||||
}
|
||||
/*
|
||||
* 2. Compute RAW pseudorranges: Use only the valid channels (channels that are tracking a satellite)
|
||||
* 2. Compute RAW pseudoranges: Use only the valid channels (channels that are tracking a satellite)
|
||||
*/
|
||||
if(current_gnss_synchro_map.size() > 0 and flag_history_ok == true)
|
||||
{
|
||||
@@ -219,18 +219,18 @@ int gps_l1_ca_observables_cc::general_work (int noutput_items, gr_vector_int &ni
|
||||
if (reference_channel != gnss_synchro_iter->second.Channel_ID)
|
||||
{
|
||||
// compute the required symbol history shift in order to match the reference symbol
|
||||
history_shift = gnss_synchro_iter->second.Preamble_symbol_counter-current_symbol;
|
||||
history_shift = gnss_synchro_iter->second.Preamble_symbol_counter - current_symbol;
|
||||
if (history_shift < (int)MAX_TOA_DELAY_MS ) // and history_shift>=0)
|
||||
{
|
||||
tmp_gnss_synchro= d_history_gnss_synchro_deque[gnss_synchro_iter->second.Channel_ID][history_shift];
|
||||
gnss_synchro_aligned_map.insert(std::pair<int,Gnss_Synchro>(gnss_synchro_iter->second.Channel_ID,tmp_gnss_synchro));
|
||||
gnss_synchro_aligned_map.insert(std::pair<int,Gnss_Synchro>(gnss_synchro_iter->second.Channel_ID, tmp_gnss_synchro));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* 3 Compute the pseudorranges using the aligned data map
|
||||
* 3 Compute the pseudoranges using the aligned data map
|
||||
*/
|
||||
double min_symbol_timestamp_ms;
|
||||
double max_symbol_timestamp_ms;
|
||||
|
||||
Reference in New Issue
Block a user