1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-18 21:23:02 +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
// % 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;
// remove NaN
@ -896,7 +896,6 @@ void coderate_phaserate_consistence(
}
// 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;
// remove NaN
@ -916,12 +915,10 @@ void coderate_phaserate_consistence(
std::cout << "Warning: bad phase reate \n";
}
// 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;
double maxratediff = 5;
idx = arma::find(phaserate > maxratediff);