From 4ccd2c299b4eb4684e629bf914b99777eaf33363 Mon Sep 17 00:00:00 2001 From: Antonio Ramos Date: Thu, 1 Mar 2018 15:54:51 +0100 Subject: [PATCH] Check data validity --- .../observables/gnuradio_blocks/hybrid_observables_cc.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_cc.cc b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_cc.cc index 559caafdc..d8b3a5e34 100644 --- a/src/algorithms/observables/gnuradio_blocks/hybrid_observables_cc.cc +++ b/src/algorithms/observables/gnuradio_blocks/hybrid_observables_cc.cc @@ -290,6 +290,7 @@ int hybrid_observables_cc::save_matfile() bool hybrid_observables_cc::interpolate_data(Gnss_Synchro& out, std::deque& data, const double& ti) { + if((ti < data.front().RX_time) or (ti > data.back().RX_time)) { return false; } std::deque::iterator it; arma::vec t = arma::vec(data.size());