1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-07-06 12:02:55 +00:00

Fixes for cpplint job

This commit is contained in:
Carles Fernandez 2020-02-25 18:27:04 +01:00
parent 38a0777946
commit 5a71e59450
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -875,7 +875,7 @@ void coderate_phaserate_consistence(
} }
// 2) It checks that the pseduorange rate is within a certain threshold // 2) It checks that the pseduorange rate is within a certain threshold
// % check code rate // check code rate
arma::vec coderate = prange.subvec(1, prange.n_elem - 1) - prange.subvec(0, prange.n_elem - 2) / delta_time; arma::vec coderate = prange.subvec(1, prange.n_elem - 1) - prange.subvec(0, prange.n_elem - 2) / delta_time;
// remove NaN // remove NaN
@ -896,7 +896,6 @@ void coderate_phaserate_consistence(
} }
// 3) It checks that the phase rate is within a certain threshold // 3) It checks that the phase rate is within a certain threshold
arma::vec phaserate = phase.subvec(1, prange.n_elem - 1) - phase.subvec(0, prange.n_elem - 2) / delta_time; arma::vec phaserate = phase.subvec(1, prange.n_elem - 1) - phase.subvec(0, prange.n_elem - 2) / delta_time;
// remove NaN // remove NaN
@ -916,12 +915,10 @@ void coderate_phaserate_consistence(
std::cout << "Warning: bad phase reate \n"; std::cout << "Warning: bad phase reate \n";
} }
// 4) It checks the difference between code and phase rates // 4) It checks the difference between code and phase rates
// % check difference between code and phase rates // check difference between code and phase rates
arma::vec ratediff = phaserate - coderate; arma::vec ratediff = phaserate - coderate;
double maxratediff = 5; double maxratediff = 5;
idx = arma::find(phaserate > maxratediff); idx = arma::find(phaserate > maxratediff);