aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/main.cpp b/main.cpp
index b5dcf2f..88eb846 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2015
+ Copyright (C) 2017
Matthias P. Braendli, matthias.braendli@mpb.li
http://opendigitalradio.org
@@ -62,7 +62,7 @@ AlignSample aligner;
PointCloud cloud(10000);
-size_t do_receive(OutputUHD* output_uhd)
+size_t do_receive(OutputUHD *output_uhd)
{
std::vector<complexf> samps(samps_per_buffer);
double first_sample_time = 0;
@@ -99,7 +99,8 @@ long user_delay = 0;
void push_to_point_cloud(size_t rx_delay)
{
- auto points = aligner.get_samples(correlation_length, rx_delay + user_delay);
+ aligner.delay_rx_samples(rx_delay + user_delay);
+ auto points = aligner.get_samples(correlation_length);
if (points.first.size() > 0) {
cloud.push_samples(points);