mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-02-21 05:20:37 +00:00
Fixing usage of invalid iterators
This commit is contained in:
parent
7d38e4884d
commit
f61f065e54
@ -312,8 +312,7 @@ bool galileo_e1_ls_pvt::get_PVT(std::map<int,Gnss_Synchro> gnss_pseudoranges_map
|
|||||||
|
|
||||||
Galileo_week_number = galileo_ephemeris_iter->second.WN_5; //for GST
|
Galileo_week_number = galileo_ephemeris_iter->second.WN_5; //for GST
|
||||||
|
|
||||||
//debug
|
double GST = galileo_ephemeris_map.find(gnss_pseudoranges_iter->first)->second.Galileo_System_Time(Galileo_week_number, galileo_current_time);
|
||||||
double GST = galileo_ephemeris_iter->second.Galileo_System_Time(Galileo_week_number, galileo_current_time);
|
|
||||||
utc = galileo_utc_model.GST_to_UTC_time(GST, Galileo_week_number);
|
utc = galileo_utc_model.GST_to_UTC_time(GST, Galileo_week_number);
|
||||||
// get time string gregorian calendar
|
// get time string gregorian calendar
|
||||||
boost::posix_time::time_duration t = boost::posix_time::seconds(utc);
|
boost::posix_time::time_duration t = boost::posix_time::seconds(utc);
|
||||||
|
@ -426,7 +426,7 @@ bool hybrid_ls_pvt::get_PVT(std::map<int,Gnss_Synchro> gnss_pseudoranges_map, do
|
|||||||
mypos = leastSquarePos(satpos, obs, W);
|
mypos = leastSquarePos(satpos, obs, W);
|
||||||
|
|
||||||
// Compute GST and Gregorian time
|
// Compute GST and Gregorian time
|
||||||
double GST = galileo_ephemeris_iter->second.Galileo_System_Time(Galileo_week_number, hybrid_current_time);
|
double GST = galileo_ephemeris_map.find(gnss_pseudoranges_iter->first)->second.Galileo_System_Time(Galileo_week_number, hybrid_current_time);
|
||||||
utc = galileo_utc_model.GST_to_UTC_time(GST, Galileo_week_number);
|
utc = galileo_utc_model.GST_to_UTC_time(GST, Galileo_week_number);
|
||||||
// get time string Gregorian calendar
|
// get time string Gregorian calendar
|
||||||
boost::posix_time::time_duration t = boost::posix_time::seconds(utc);
|
boost::posix_time::time_duration t = boost::posix_time::seconds(utc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user