mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2026-10-04 06:41:49 +00:00
Improve constructors: prefer member initializers to member initializations in the constructor body
This commit is contained in:
@@ -55,14 +55,14 @@ public:
|
||||
|
||||
private:
|
||||
std::vector<float> init_buffer_;
|
||||
float alpha_; // takes value 0.0001 if not set
|
||||
float one_minus_alpha_;
|
||||
float old_value_;
|
||||
float min_value_;
|
||||
float offset_;
|
||||
int samples_for_initialization_;
|
||||
int init_counter_;
|
||||
bool initializing_;
|
||||
float alpha_{0.001};
|
||||
float one_minus_alpha_{0.999};
|
||||
float old_value_{0.0};
|
||||
float min_value_{25.0};
|
||||
float offset_{12.0};
|
||||
int samples_for_initialization_{200};
|
||||
int init_counter_{0};
|
||||
bool initializing_{true};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user