Changeset 3174 in ntrip for trunk/BNC/upload


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

Legend:

Unmodified
Added
Removed
  • 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.