[hamradio-commits] [gnss-sdr] 35/60: Fixing bug in updating RINEX obs headers

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sun Mar 22 11:15:43 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 504e96b5361fe1e4a5f7763c241cd7b933d95efb
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Tue Mar 3 20:07:35 2015 +0100

    Fixing bug in updating RINEX obs headers
---
 src/algorithms/PVT/libs/rinex_printer.cc | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc
index 0391765..f80eba4 100644
--- a/src/algorithms/PVT/libs/rinex_printer.cc
+++ b/src/algorithms/PVT/libs/rinex_printer.cc
@@ -1895,17 +1895,18 @@ void Rinex_Printer::update_obs_header(std::fstream& out, const Gps_Utc_Model& ut
         }
 
     out.close();
-    out.open(navfilename, std::ios::out | std::ios::trunc);
+    out.open(obsfilename, std::ios::out | std::ios::trunc);
     out.seekp(0);
     for (int i = 0; i < (int) data.size() - 1; i++)
         {
             out << data[i] << std::endl;
         }
     out.close();
-    out.open(navfilename, std::ios::out | std::ios::app);
+    out.open(obsfilename, std::ios::out | std::ios::app);
     out.seekp(pos);
 }
 
+
 void Rinex_Printer::rinex_obs_header(std::fstream& out, const Gps_Ephemeris& eph, const double d_TOW_first_observation)
 {
     std::string line;
@@ -2166,6 +2167,7 @@ void Rinex_Printer::rinex_obs_header(std::fstream& out, const Gps_Ephemeris& eph
     out << line << std::endl;
 }
 
+
 void Rinex_Printer::update_obs_header(std::fstream& out, const Galileo_Utc_Model& galileo_utc_model)
 {
     std::vector<std::string> data;
@@ -2215,14 +2217,14 @@ void Rinex_Printer::update_obs_header(std::fstream& out, const Galileo_Utc_Model
         }
 
     out.close();
-    out.open(navfilename, std::ios::out | std::ios::trunc);
+    out.open(obsfilename, std::ios::out | std::ios::trunc);
     out.seekp(0);
     for (int i = 0; i < (int) data.size() - 1; i++)
         {
             out << data[i] << std::endl;
         }
     out.close();
-    out.open(navfilename, std::ios::out | std::ios::app);
+    out.open(obsfilename, std::ios::out | std::ios::app);
     out.seekp(pos);
 }
 

-- 
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