diff --git a/src/algorithms/PVT/libs/pvt_solution.cc b/src/algorithms/PVT/libs/pvt_solution.cc index aaa0b58ad..7ebeb0324 100644 --- a/src/algorithms/PVT/libs/pvt_solution.cc +++ b/src/algorithms/PVT/libs/pvt_solution.cc @@ -22,26 +22,6 @@ #include -Pvt_Solution::Pvt_Solution() : d_latitude_d(0.0), - d_longitude_d(0.0), - d_height_m(0.0), - d_rx_dt_s(0.0), - d_rx_clock_drift_ppm(0.0), - d_speed_over_ground_m_s(0.0), - d_course_over_ground_d(0.0), - d_avg_latitude_d(0.0), - d_avg_longitude_d(0.0), - d_avg_height_m(0.0), - d_averaging_depth(0), - d_valid_observations(false), - d_pre_2009_file(false), - d_valid_position(false), - d_flag_averaging(false) - -{ -} - - int Pvt_Solution::cart2geo(double X, double Y, double Z, int elipsoid_selection) { /* Conversion of Cartesian coordinates (X,Y,Z) to geographical diff --git a/src/algorithms/PVT/libs/pvt_solution.h b/src/algorithms/PVT/libs/pvt_solution.h index e4e699587..3d9764537 100644 --- a/src/algorithms/PVT/libs/pvt_solution.h +++ b/src/algorithms/PVT/libs/pvt_solution.h @@ -35,7 +35,7 @@ class Pvt_Solution { public: - Pvt_Solution(); + Pvt_Solution() = default; virtual ~Pvt_Solution() = default; void set_rx_pos(const std::array &pos); //!< Set position: X, Y, Z in Cartesian ECEF coordinates [m] @@ -102,24 +102,24 @@ private: std::deque d_hist_longitude_d; std::deque d_hist_height_m; - double d_latitude_d; // RX position Latitude WGS84 [deg] - double d_longitude_d; // RX position Longitude WGS84 [deg] - double d_height_m; // RX position height WGS84 [m] - double d_rx_dt_s; // RX time offset [s] - double d_rx_clock_drift_ppm; // RX clock drift [ppm] - double d_speed_over_ground_m_s; // RX speed over ground [m/s] - double d_course_over_ground_d; // RX course over ground [deg] + double d_latitude_d{0.0}; // RX position Latitude WGS84 [deg] + double d_longitude_d{0.0}; // RX position Longitude WGS84 [deg] + double d_height_m{0.0}; // RX position height WGS84 [m] + double d_rx_dt_s{0.0}; // RX time offset [s] + double d_rx_clock_drift_ppm{0.0}; // RX clock drift [ppm] + double d_speed_over_ground_m_s{0.0}; // RX speed over ground [m/s] + double d_course_over_ground_d{0.0}; // RX course over ground [deg] - double d_avg_latitude_d; // Averaged latitude in degrees - double d_avg_longitude_d; // Averaged longitude in degrees - double d_avg_height_m; // Averaged height [m] + double d_avg_latitude_d{0.0}; // Averaged latitude in degrees + double d_avg_longitude_d{0.0}; // Averaged longitude in degrees + double d_avg_height_m{0.0}; // Averaged height [m] - int d_averaging_depth; // Length of averaging window - int d_valid_observations; + int d_averaging_depth{0}; // Length of averaging window + int d_valid_observations{0}; // Number of valid observations in this epoch - bool d_pre_2009_file; // Flag to correct week rollover in post processing mode for signals older than 2009 - bool d_valid_position; - bool d_flag_averaging; + bool d_pre_2009_file{false}; // Flag to correct week rollover in post processing mode for signals older than 2009 + bool d_valid_position{false}; + bool d_flag_averaging{false}; };