1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-03-04 10:38:17 +00:00

Make clang-tidy happy

This commit is contained in:
Carles Fernandez 2025-01-27 18:14:05 +01:00
parent 5f1eea4d08
commit 777a987b5f
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
4 changed files with 4 additions and 4 deletions

View File

@ -873,7 +873,7 @@ int glonass_l1_ca_dll_pll_c_aid_tracking_cc::general_work(int noutput_items __at
tmp_float = static_cast<float>(d_code_freq_chips); tmp_float = static_cast<float>(d_code_freq_chips);
d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float)); d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float));
// PLL commands // PLL commands
float aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S); auto aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S);
if (std::fabs(aux) > std::numeric_limits<float>::epsilon()) if (std::fabs(aux) > std::numeric_limits<float>::epsilon())
{ {
tmp_float = 1.0 / aux; tmp_float = 1.0 / aux;

View File

@ -875,7 +875,7 @@ int glonass_l1_ca_dll_pll_c_aid_tracking_sc::general_work(int noutput_items __at
tmp_float = static_cast<float>(d_code_freq_chips); tmp_float = static_cast<float>(d_code_freq_chips);
d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float)); d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float));
// PLL commands // PLL commands
float aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S); auto aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S);
if (std::fabs(aux) > std::numeric_limits<float>::epsilon()) if (std::fabs(aux) > std::numeric_limits<float>::epsilon())
{ {
tmp_float = 1.0 / aux; tmp_float = 1.0 / aux;

View File

@ -868,7 +868,7 @@ int glonass_l2_ca_dll_pll_c_aid_tracking_cc::general_work(int noutput_items __at
tmp_float = static_cast<float>(d_code_freq_chips); tmp_float = static_cast<float>(d_code_freq_chips);
d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float)); d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float));
// PLL commands // PLL commands
float aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S); auto aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S);
if (std::fabs(aux) > std::numeric_limits<float>::epsilon()) if (std::fabs(aux) > std::numeric_limits<float>::epsilon())
{ {
tmp_float = 1.0 / aux; tmp_float = 1.0 / aux;

View File

@ -872,7 +872,7 @@ int glonass_l2_ca_dll_pll_c_aid_tracking_sc::general_work(int noutput_items __at
tmp_float = static_cast<float>(d_code_freq_chips); tmp_float = static_cast<float>(d_code_freq_chips);
d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float)); d_dump_file.write(reinterpret_cast<char *>(&tmp_float), sizeof(float));
// PLL commands // PLL commands
float aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S); auto aux = static_cast<float>(d_carr_phase_error_secs_Ti * CURRENT_INTEGRATION_TIME_S);
if (std::fabs(aux) > std::numeric_limits<float>::epsilon()) if (std::fabs(aux) > std::numeric_limits<float>::epsilon())
{ {
tmp_float = 1.0 / aux; tmp_float = 1.0 / aux;