mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-30 21:24:09 +00:00
Move obs_data to private member, so we ask for memory only once
This commit is contained in:
parent
c8a03dc4af
commit
8cb2563341
@ -442,7 +442,7 @@ bool Rtklib_Solver::get_PVT(const std::map<int, Gnss_Synchro> &gnss_observables_
|
|||||||
int valid_obs = 0; // valid observations counter
|
int valid_obs = 0; // valid observations counter
|
||||||
int glo_valid_obs = 0; // GLONASS L1/L2 valid observations counter
|
int glo_valid_obs = 0; // GLONASS L1/L2 valid observations counter
|
||||||
|
|
||||||
std::array<obsd_t, MAXOBS> obs_data{};
|
obs_data.fill({});
|
||||||
std::vector<eph_t> eph_data(MAXOBS);
|
std::vector<eph_t> eph_data(MAXOBS);
|
||||||
std::vector<geph_t> geph_data(MAXOBS);
|
std::vector<geph_t> geph_data(MAXOBS);
|
||||||
|
|
||||||
|
@ -128,14 +128,15 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
rtk_t rtk_{};
|
rtk_t rtk_{};
|
||||||
|
Monitor_Pvt monitor_pvt{};
|
||||||
|
std::array<obsd_t, MAXOBS> obs_data{};
|
||||||
|
std::array<double, 4> dop_{};
|
||||||
std::string d_dump_filename;
|
std::string d_dump_filename;
|
||||||
std::ofstream d_dump_file;
|
std::ofstream d_dump_file;
|
||||||
bool save_matfile();
|
int d_nchannels; // Number of available channels for positioning
|
||||||
bool d_flag_dump_enabled;
|
bool d_flag_dump_enabled;
|
||||||
bool d_flag_dump_mat_enabled;
|
bool d_flag_dump_mat_enabled;
|
||||||
int d_nchannels; // Number of available channels for positioning
|
bool save_matfile();
|
||||||
std::array<double, 4> dop_{};
|
|
||||||
Monitor_Pvt monitor_pvt{};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user