Changeset 3507 in ntrip for trunk/BNC


Ignore:
Timestamp:
Nov 19, 2011, 3:43:16 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/GPSS/hassDecoder.cpp

    r3506 r3507  
    1717
    1818#include "hassDecoder.h"
     19#include "bnctime.h"
    1920
    2021using namespace std;
     
    6263       >> deltaClk >> rateDeltaX >> rateDeltaY >> rateDeltaZ;
    6364
     65    bncTime tt;
     66    tt.setmjd(daySec, mjd);
     67
     68    _GPSweeks = tt.gpssec();
     69    long coTime = tt.gpsw() * 7*24*3600 + long(floor(_GPSweeks+0.5));
     70
     71    QString corrLine;
     72
     73    int messageType    = -1;
     74    int updateInterval =  0;
     75
     76    corrLine.sprintf("%d %d %d %.1f %s"
     77                     "   %3d"
     78                     "   %8.3f %8.3f %8.3f %8.3f"
     79                     "   %10.5f %10.5f %10.5f %10.5f"
     80                     "   %10.5f",
     81                     messageType, updateInterval, tt.gpsw(), _GPSweeks,
     82                     prn.toAscii().data(), IOD,
     83                     deltaClk, deltaX, deltaY, deltaZ,
     84                     0.0, rateDeltaX, rateDeltaY, rateDeltaZ, 0.0);
     85   
     86    printLine(corrLine, coTime);
    6487  }
    6588
  • trunk/BNC/bnctime.h

    r2923 r3507  
    1313  bncTime& set(int year, int month, int day, int hour, int min, double sec);
    1414  bncTime& set(int year, int month, int day, double daysec);
     15  bncTime& setmjd(double daysec, int mjd);
    1516
    1617  unsigned int mjd()    const;
     
    3738
    3839 private:
    39   bncTime&     setmjd(double daysec, int mjd);
    4040  void        reset() {_mjd = 0; _sec = 0;}
    4141
Note: See TracChangeset for help on using the changeset viewer.