diff --git a/src/algorithms/acquisition/libs/acq_conf.cc b/src/algorithms/acquisition/libs/acq_conf.cc index 8c776ffe4..3982b0dc8 100644 --- a/src/algorithms/acquisition/libs/acq_conf.cc +++ b/src/algorithms/acquisition/libs/acq_conf.cc @@ -22,6 +22,7 @@ #include "item_type_helpers.h" #include #include +#include Acq_Conf::Acq_Conf() { @@ -148,6 +149,6 @@ void Acq_Conf::ConfigureAutomaticResampler(double opt_freq) void Acq_Conf::SetDerivedParams() { samples_per_ms = static_cast(resampled_fs) * 0.001; - samples_per_chip = static_cast(ceil(static_cast(resampled_fs) / chips_per_second)); + samples_per_chip = static_cast(std::ceil(static_cast(resampled_fs) / chips_per_second)); samples_per_code = samples_per_ms * ms_per_code; } diff --git a/src/algorithms/acquisition/libs/acq_conf.h b/src/algorithms/acquisition/libs/acq_conf.h index b1e26d0f2..12d8d5957 100644 --- a/src/algorithms/acquisition/libs/acq_conf.h +++ b/src/algorithms/acquisition/libs/acq_conf.h @@ -22,13 +22,16 @@ #define GNSS_SDR_ACQ_CONF_H #include "configuration_interface.h" -#include #include #include class Acq_Conf { public: + Acq_Conf(); + + void SetFromConfiguration(ConfigurationInterface *configuration, const std::string &role, double chip_rate, double opt_freq); + /* PCPS Acquisition configuration */ uint32_t sampled_ms; uint32_t ms_per_code; @@ -60,10 +63,6 @@ public: size_t it_size; std::string item_type; - Acq_Conf(); - - void SetFromConfiguration(ConfigurationInterface *configuration, const std::string &role, double chip_rate, double opt_freq); - private: void SetDerivedParams();