1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-16 05:00:35 +00:00

Check data validity

This commit is contained in:
Antonio Ramos 2018-03-01 15:54:51 +01:00
parent eed6ed1f5e
commit 4ccd2c299b

View File

@ -290,6 +290,7 @@ int hybrid_observables_cc::save_matfile()
bool hybrid_observables_cc::interpolate_data(Gnss_Synchro& out, std::deque<Gnss_Synchro>& data, const double& ti) bool hybrid_observables_cc::interpolate_data(Gnss_Synchro& out, std::deque<Gnss_Synchro>& data, const double& ti)
{ {
if((ti < data.front().RX_time) or (ti > data.back().RX_time)) { return false; }
std::deque<Gnss_Synchro>::iterator it; std::deque<Gnss_Synchro>::iterator it;
arma::vec t = arma::vec(data.size()); arma::vec t = arma::vec(data.size());