1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-10-25 20:47:39 +00:00

File cleaning

This commit is contained in:
Carles Fernandez
2019-07-07 21:44:58 +02:00
parent 29a910df30
commit 6cc1de7118
8 changed files with 19 additions and 56 deletions

View File

@@ -48,13 +48,6 @@ Exponential_Smoother::Exponential_Smoother()
}
Exponential_Smoother::~Exponential_Smoother() = default;
// Move assignment operator
Exponential_Smoother& Exponential_Smoother::operator=(Exponential_Smoother&& other) = default;
void Exponential_Smoother::set_alpha(float alpha)
{
alpha_ = alpha;

View File

@@ -48,7 +48,7 @@ class Exponential_Smoother
{
public:
Exponential_Smoother(); //!< Constructor
~Exponential_Smoother(); //!< Destructor
~Exponential_Smoother() = default; //!< Destructor
void set_alpha(float alpha); //!< 0 < alpha < 1. The higher, the most responsive, but more variance. Default value: 0.001
void set_samples_for_initialization(int num_samples); //!< Number of samples averaged for initialization. Default value: 200
void reset();
@@ -56,7 +56,8 @@ public:
void set_offset(float offset);
float smooth(float raw);
double smooth(double raw);
Exponential_Smoother& operator=(Exponential_Smoother&& other); //!< Move assignment operator
Exponential_Smoother(Exponential_Smoother&&) = default; //!< Move operator
Exponential_Smoother& operator=(Exponential_Smoother&& /*other*/) = default; //!< Move assignment operator
private:
float alpha_; // takes value 0.0001 if not set
int samples_for_initialization_;

View File

@@ -68,13 +68,6 @@ Tracking_loop_filter::Tracking_loop_filter()
}
Tracking_loop_filter::~Tracking_loop_filter() = default;
// Move assignment operator
Tracking_loop_filter& Tracking_loop_filter::operator=(Tracking_loop_filter&& other) = default;
float Tracking_loop_filter::apply(float current_input)
{
// Now apply the filter coefficients:
@@ -238,6 +231,7 @@ void Tracking_loop_filter::set_update_interval(float update_interval)
update_coefficients();
}
float Tracking_loop_filter::get_update_interval(void) const
{
return d_update_interval;

View File

@@ -45,13 +45,14 @@ class Tracking_loop_filter
{
public:
Tracking_loop_filter();
~Tracking_loop_filter();
~Tracking_loop_filter() = default;
Tracking_loop_filter(float update_interval, float noise_bandwidth,
int loop_order = 2,
bool include_last_integrator = false);
Tracking_loop_filter& operator=(Tracking_loop_filter&& other); //!< Move assignment operator
Tracking_loop_filter(Tracking_loop_filter&&) = default; //!< Move operator
Tracking_loop_filter& operator=(Tracking_loop_filter&& /*other*/) = default; //!< Move assignment operator
float get_noise_bandwidth(void) const;
float get_update_interval(void) const;