Changeset 4010 in ntrip for trunk/BNC/rinex


Ignore:
Timestamp:
Apr 22, 2012, 12:29:32 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/reqcedit.cpp

    r4009 r4010  
    5656  _navFileNames   = settings.value("reqcNavFile").toString().split(",", QString::SkipEmptyParts);
    5757  _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  }
    5965  _samplingRate   = settings.value("reqcSampling").toInt();
    6066  _begTime        = bncTime(settings.value("reqcStartDateTime").toString().toAscii().data());
     
    255261  for (int ii = 0; ii < _ephs.size(); ii++) {
    256262    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  
    4242#include <newmatio.h>
    4343#include "rnxnavfile.h"
     44#include "bncapp.h"
    4445#include "bncutils.h"
    4546#include "RTCM3/ephemeris.h"
     
    239240////////////////////////////////////////////////////////////////////////////
    240241void 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";
    242268}
    243269
Note: See TracChangeset for help on using the changeset viewer.