[hamradio-commits] [gnss-sdr] 28/60: Removing a blank line in the RINEX file

Carles Fernandez carles_fernandez-guest at moszumanska.debian.org
Sun Mar 22 11:15:42 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 9862ec7dfdcf32c1a3ed43e5c15571dbf48d56c1
Author: Carles Fernandez <carles.fernandez at gmail.com>
Date:   Tue Mar 3 15:07:37 2015 +0100

    Removing a blank line in the RINEX file
---
 src/algorithms/PVT/libs/rinex_printer.cc | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/algorithms/PVT/libs/rinex_printer.cc b/src/algorithms/PVT/libs/rinex_printer.cc
index 0f35d38..a060bcc 100644
--- a/src/algorithms/PVT/libs/rinex_printer.cc
+++ b/src/algorithms/PVT/libs/rinex_printer.cc
@@ -583,7 +583,7 @@ void Rinex_Printer::update_nav_header(std::fstream& out, const Gps_Utc_Model& ut
             out.close();
             out.open(navfilename, std::ios::out | std::ios::trunc);
             out.seekp(0);
-            for (int i = 0; i < (int) data.size(); i++)
+            for (int i = 0; i < (int) data.size() - 1; i++)
                 {
                     out << data[i] << std::endl;
                 }
@@ -604,8 +604,6 @@ void Rinex_Printer::update_nav_header(std::fstream& out, const Gps_Utc_Model& ut
 
         }
 
-    //myFile.close();
-    //remove(tmpfilename.c_str());
     out.seekp(pos);
     std::cout << "The RINEX Navigation file header has been updated with UTC and IONO info." << std::endl;
 }

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