Changeset 4010 in ntrip for trunk/BNC/rinex
- Timestamp:
- Apr 22, 2012, 12:29:32 PM (13 years ago)
- Location:
- trunk/BNC/rinex
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/rinex/reqcedit.cpp
r4009 r4010 56 56 _navFileNames = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts); 57 57 _outNavFileName = settings.value("reqcOutNavFile").toString(); 58 _rnxVersion = settings.value("reqcRnxVersion").toDouble(); 58 int version = settings.value("reqcRnxVersion").toInt(); 59 if (version < 3) { 60 _rnxVersion = 2.11; 61 } 62 else { 63 _rnxVersion = 3.01; 64 } 59 65 _samplingRate = settings.value("reqcSampling").toInt(); 60 66 _begTime = bncTime(settings.value("reqcStartDateTime").toString().toAscii().data()); … … 255 261 for (int ii = 0; ii < _ephs.size(); ii++) { 256 262 const t_eph* eph = _ephs[ii]; 257 outNavFile.writeEph(eph); 258 } 259 } 263 if (eph->type() == t_eph::GPS || _rnxVersion >= 3.0) { 264 outNavFile.writeEph(eph); 265 } 266 } 267 } -
trunk/BNC/rinex/rnxnavfile.cpp
r4004 r4010 42 42 #include <newmatio.h> 43 43 #include "rnxnavfile.h" 44 #include "bncapp.h" 44 45 #include "bncutils.h" 45 46 #include "RTCM3/ephemeris.h" … … 239 240 //////////////////////////////////////////////////////////////////////////// 240 241 void t_rnxNavFile::writeHeader() { 241 *_stream << "Writing header ..." << endl; 242 243 bncApp* app = (bncApp*) qApp; 244 245 if (version() < 3.0) { 246 *_stream << QString("%1 Navigation data") 247 .arg(_header._version, 9, 'f', 2) 248 .leftJustified(60) 249 << "RINEX VERSION / TYPE\n"; 250 } 251 else { 252 *_stream << QString("%1 Navigation data Mixed") 253 .arg(_header._version, 9, 'f', 2) 254 .leftJustified(60) 255 << "RINEX VERSION / TYPE\n"; 256 } 257 258 *_stream << QString("%1%2%3") 259 .arg(app->pgmName(), -20) 260 .arg(app->userName(), -20) 261 .arg(currentDateAndTimeGPS().date().toString("dd-MMM-yyyy"), -20) 262 .leftJustified(60) 263 << "PGM / RUN BY / DATE\n"; 264 265 *_stream << QString() 266 .leftJustified(60) 267 << "END OF HEADER\n"; 242 268 } 243 269
Note:
See TracChangeset
for help on using the changeset viewer.