[hamradio-commits] [gnss-sdr] 03/06: Fixing a bug in the printer for GPS obs data (version 2.11)
Carles Fernandez
carles_fernandez-guest at moszumanska.debian.org
Fri Feb 20 17:36:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
carles_fernandez-guest pushed a commit to branch next
in repository gnss-sdr.
commit 6354b715c833ab504c39ba8c383a9be0f34e5faf
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date: Wed Feb 18 01:06:41 2015 +0100
Fixing a bug in the printer for GPS obs data (version 2.11)
---
src/algorithms/PVT/libs/rinex_printer.cc | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc
index 0462bca..e9553e4 100644
--- a/src/algorithms/PVT/libs/rinex_printer.cc
+++ b/src/algorithms/PVT/libs/rinex_printer.cc
@@ -1010,18 +1010,15 @@ void Rinex_Printer::log_rinex_nav(std::ofstream& out, const std::map<int,Gps_Eph
{
line += std::string(5, ' ');
}
- // IODE is not present in ephemeris data
// If there is a discontinued reception the ephemeris is not validated
- //if (gps_ephemeris_iter->second.d_IODE_SF2 == gps_ephemeris_iter->second.d_IODE_SF3)
- // {
- // line += Rinex_Printer::doub2for(gps_ephemeris_iter->second.d_IODE_SF2, 18, 2);
- // }
- //else
- // {
- // LOG(ERROR) << "Discontinued reception of Frame 2 and 3 " << std::endl;
- // }
- double d_IODE_SF2 = 0;
- line += Rinex_Printer::doub2for(d_IODE_SF2, 18, 2);
+ if (gps_ephemeris_iter->second.d_IODE_SF2 == gps_ephemeris_iter->second.d_IODE_SF3)
+ {
+ line += Rinex_Printer::doub2for(gps_ephemeris_iter->second.d_IODE_SF2, 18, 2);
+ }
+ else
+ {
+ LOG(WARNING) << "Discontinued reception of Frame 2 and 3";
+ }
line += std::string(1, ' ');
line += Rinex_Printer::doub2for(gps_ephemeris_iter->second.d_Crs, 18, 2);
line += std::string(1, ' ');
@@ -2145,6 +2142,11 @@ void Rinex_Printer::log_rinex_obs(std::ofstream& out, const Gps_Ephemeris& eph,
line += std::string(1, ' ');
line += minutes;
line += std::string(1, ' ');
+ double second_ = fmod(gps_t, 60);
+ if (second_ < 10)
+ {
+ line += std::string(1, ' ');
+ }
line += Rinex_Printer::asString(fmod(gps_t, 60), 7);
line += std::string(2, ' ');
// Epoch flag 0: OK 1: power failure between previous and current epoch <1: Special event
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/gnss-sdr.git
More information about the pkg-hamradio-commits
mailing list