Changeset 3174 in ntrip


Ignore:
Timestamp:
Mar 29, 2011, 5:14:09 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.h

    r2770 r3174  
    33
    44#include <newmat.h>
    5 
     5#include <QtCore>
    66#include <stdio.h>
    77#include <string>
     
    1616  bool        isNewerThan(const t_eph* eph) const;
    1717  std::string prn() const {return _prn;}
     18  void    setReceptDateTime(const QDateTime& dateTime) {
     19    _receptDateTime = dateTime;
     20  }
     21  const QDateTime& receptDateTime() const {return _receptDateTime;}
    1822
    1923  int    GPSweek()  const { return _GPSweek; }
     
    4246  int         _GPSweek;
    4347  double      _GPSweeks;
     48  QDateTime   _receptDateTime;
    4449};
    4550
  • trunk/BNC/bnc.pro

    r3173 r3174  
    4242          bancroft.h bncmodel.h bncfigureppp.h bncrawfile.h           \
    4343          bnctides.h bncmap.h bncmapview.h bncantex.h                 \
    44           bncephuser.h                                                \
     44          bncephuser.h bncoutf.h                                      \
    4545          upload/bncrtnetdecoder.h upload/bncuploadcaster.h           \
     46          upload/bncclockrinex.h                                      \
    4647          RTCM/GPSDecoder.h RTCM/RTCM2.h RTCM/RTCM2Decoder.h          \
    4748          RTCM/RTCM2_2021.h RTCM/rtcm_utils.h                         \
     
    7475          bancroft.cpp bncmodel.cpp bncfigureppp.cpp bncrawfile.cpp   \
    7576          bnctides.cpp bncmap.cpp bncmapview.cpp bncantex.cpp         \
    76           bncephuser.cpp                                              \
     77          bncephuser.cpp bncoutf.cpp                                  \
    7778          upload/bncrtnetdecoder.cpp upload/bncuploadcaster.cpp       \
     79          upload/bncclockrinex.cpp                                    \
    7880          RTCM/RTCM2.cpp RTCM/RTCM2Decoder.cpp                        \
    7981          RTCM/RTCM2_2021.cpp RTCM/rtcm_utils.cpp                     \
  • trunk/BNC/bncephuser.h

    r3032 r3174  
    9595      delete prev;
    9696    }
     97    ColumnVector xx;
    9798    t_eph* last;
    9899    t_eph* prev;
  • trunk/BNC/upload/bncrtnetdecoder.cpp

    r3172 r3174  
    125125          in >> prn;
    126126          prns << prn;
    127           if ( _ephList.contains(prn) ) {
     127          if ( _eph.contains(prn) ) {
    128128            in >> xx(1) >> xx(2) >> xx(3) >> xx(4) >> xx(5)
    129129               >> xx(6) >> xx(7) >> xx(8) >> xx(9) >> xx(10)
     
    142142            xx(14) *= 1e3;         // z-crd at time + dT
    143143
    144             pair     = _ephList[prn];
     144            pair     = _eph[prn];
    145145            pair->xx = xx;
    146146          }
     
    148148        else {
    149149          prn = prns[ii];
    150           if ( _ephList.contains(prn) ) {
    151             pair = _ephList[prn];
     150          if ( _eph.contains(prn) ) {
     151            pair = _eph[prn];
    152152            xx   = pair->xx;
    153153          }
     
    158158        t_eph* ep = 0;
    159159        if (pair) {
    160           ep = pair->eph;
    161           if (pair->oldEph && ep &&
     160          ep = pair->last;
     161          if (pair->prev && ep &&
    162162              ep->receptDateTime().secsTo(QDateTime::currentDateTime()) < 60) {
    163             ep = pair->oldEph;
     163            ep = pair->prev;
    164164          }
    165165        }
     
    229229        int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    230230        if (len > 0) {
    231           if (_caster.at(ic)->ic() == 1)  { emit(newOutBytes1(len));}
    232           if (_caster.at(ic)->ic() == 2)  { emit(newOutBytes2(len));}
    233           if (_caster.at(ic)->ic() == 3)  { emit(newOutBytes3(len));}
    234           if (_caster.at(ic)->ic() == 4)  { emit(newOutBytes4(len));}
    235           if (_caster.at(ic)->ic() == 5)  { emit(newOutBytes5(len));}
    236           if (_caster.at(ic)->ic() == 6)  { emit(newOutBytes6(len));}
    237           if (_caster.at(ic)->ic() == 7)  { emit(newOutBytes7(len));}
    238           if (_caster.at(ic)->ic() == 8)  { emit(newOutBytes8(len));}
    239           if (_caster.at(ic)->ic() == 9)  { emit(newOutBytes9(len));}
    240           if (_caster.at(ic)->ic() == 10) { emit(newOutBytes10(len));}
    241231          _caster.at(ic)->write(obuffer, len);
    242232        }
     
    287277    ColumnVector vv(3);
    288278
    289     ep->position(GPSweek12, GPSweeks12, xB, vv);
     279    ep->position(GPSweek12, GPSweeks12, xB.data(), vv.data());
    290280   
    291281    ColumnVector xyz;
     
    333323
    334324  outLine.sprintf("%d %.1f %s  %3d  %10.3f  %8.3f %8.3f %8.3f\n",
    335                   GPSweek, GPSweeks, ep->prn().toAscii().data(),
     325                  GPSweek, GPSweeks, ep->prn().c_str(),
    336326                  ep->IOD(), dClk, rsw(1), rsw(2), rsw(3));
    337327
     
    351341                               const QString& trafo) {
    352342
    353   bnsSettings settings;
     343  bncSettings settings;
    354344
    355345  if (trafo == "ETRF2000") {
  • trunk/BNC/upload/bncrtnetdecoder.h

    r3172 r3174  
    2929#include <QtCore>
    3030#include "bncephuser.h"
     31#include "bncuploadcaster.h"
    3132#include "RTCM/GPSDecoder.h"
    3233
     
    4849
    4950  QString _buffer;
    50 
     51  QList<bncUploadCaster*> _caster;
    5152  int    _GPSweek;
    5253  double _GPSweeks;
  • trunk/BNC/upload/bncuploadcaster.cpp

    r3172 r3174  
    2727bncUploadCaster::bncUploadCaster(const QString& mountpoint,
    2828                                 const QString& outHost, int outPort,
    29                                  const QString& password, 
     29                                 const QString& password,
     30                                 const QString& crdTrafo, bool  CoM,
    3031                                 const QString& outFileName) {
    3132
     
    3637  _outPort    = outPort;
    3738  _password   = password;
     39  _crdTrafo   = crdTrafo;
     40  _CoM        = CoM;
    3841
    3942  _outSocket  = 0;
  • trunk/BNC/upload/bncuploadcaster.h

    r3172 r3174  
    99  bncUploadCaster(const QString& mountpoint,
    1010                  const QString& outHost, int outPort,
    11                   const QString& password, 
     11                  const QString& password,
     12                  const QString& crdTrafo, bool  CoM,
    1213                  const QString& outFileName);
    1314  virtual ~bncUploadCaster();
     
    1617  void printAscii(const QString& line);
    1718  bool usedSocket() const {return _outSocket;}
     19  QString crdTrafo() const {return _crdTrafo;}
     20  bool CoM() const {return _CoM;}
    1821
    1922 signals:
     
    2629  int          _outPort;
    2730  QString      _password;
     31  QString      _crdTrafo;
     32  bool         _CoM;
    2833  QTcpSocket*  _outSocket;
    2934  int          _sOpenTrial;
Note: See TracChangeset for help on using the changeset viewer.