Changeset 7570 in ntrip


Ignore:
Timestamp:
Nov 20, 2015, 2:47:14 PM (7 years ago)
Author:
stuerze
Message:

BNC version is added in clock rinex header

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncclockrinex.cpp

    r5451 r7570  
    1212 * Created:    29-Mar-2011
    1313 *
    14  * Changes:   
     14 * Changes:
    1515 *
    1616 * -----------------------------------------------------------------------*/
     
    2121#include "bncclockrinex.h"
    2222#include "bncsettings.h"
     23#include "bncversion.h"
    2324
    2425using namespace std;
     
    2627// Constructor
    2728////////////////////////////////////////////////////////////////////////////
    28 bncClockRinex::bncClockRinex(const QString& sklFileName, const QString& intr, 
    29                              int sampl) 
     29bncClockRinex::bncClockRinex(const QString& sklFileName, const QString& intr,
     30                             int sampl)
    3031  : bncoutf(sklFileName, intr, sampl) {
    3132  bncSettings settings;
     
    3940// Write One Epoch
    4041////////////////////////////////////////////////////////////////////////////
    41 t_irc bncClockRinex::write(int GPSweek, double GPSweeks, const QString& prn, 
     42t_irc bncClockRinex::write(int GPSweek, double GPSweeks, const QString& prn,
    4243                           double sp3Clk) {
    4344
     
    4647      QDateTime datTim = dateAndTimeFromGPSweek(GPSweek, GPSweeks);
    4748      double sec = fmod(GPSweeks, 60.0);
    48    
     49
    4950      _out << "AS " << prn.toAscii().data()
    5051           << datTim.toString("  yyyy MM dd hh mm").toAscii().data()
    51            << fixed      << setw(10) << setprecision(6)  << sec 
     52           << fixed      << setw(10) << setprecision(6)  << sec
    5253           << "  1   "   << fortranFormat(sp3Clk, 19, 12).toAscii().data() << endl;
    5354
     
    6667       << "RINEX VERSION / TYPE" << endl;
    6768
    68   _out << "BNC                                     "
     69
     70  _out << "BNC v" << BNCVERSION     << "                               "
    6971       << datTim.toString("yyyyMMdd hhmmss").leftJustified(20, ' ', true).toAscii().data()
    7072       << "PGM / RUN BY / DATE" << endl;
Note: See TracChangeset for help on using the changeset viewer.