Changeset 5576 in ntrip


Ignore:
Timestamp:
Nov 25, 2013, 5:47:57 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
8 edited

Legend:

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

    r5564 r5576  
    141141    }
    142142
    143     int SSRProviderID = 0;
    144     int SSRSolutionID = 0;
    145     int SSRIOD        = 0;
    146 
    147143    corrLine.sprintf("%d %d %d %.1f %s"
    148144                     "   %3d"
    149145                     "   %8.3f %8.3f %8.3f %8.3f"
    150146                     "   %10.5f %10.5f %10.5f %10.5f"
    151                      "   %10.5f"
    152                      "   %5d %2d %2d",
     147                     "   %10.5f",
    153148                     messageType, updateInterval, coTime.gpsw(), _GPSweeks,
    154149                     prn.toAscii().data(), IOD,
    155150                     dClk, rao[0], rao[1], rao[2],
    156                      0.0, dotRao[0], dotRao[1], dotRao[2], 0.0,
    157                      SSRProviderID, SSRSolutionID, SSRIOD);
     151                     0.0, dotRao[0], dotRao[1], dotRao[2], 0.0);
    158152
    159153    RTCM3coDecoder::reopen(_fileNameSkl, _fileName, _out);   
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r5563 r5576  
    8282  memset(&_co, 0, sizeof(_co));
    8383  memset(&_bias, 0, sizeof(_bias));
     84
     85  _providerID[0] = -1;
     86  _providerID[1] = -1;
     87  _providerID[2] = -1;
    8488}
    8589
     
    220224        }
    221225
     226        checkProviderID();
     227
    222228        QStringList asciiLines = corrsToASCIIlines(GPSweek, _GPSweeks,
    223229                                                   _co, &_bias);
     
    309315                     "   %8.3f %8.3f %8.3f %8.3f"
    310316                     "   %10.5f %10.5f %10.5f %10.5f"
    311                      "   %10.5f"
    312                      "   %5d %2d %2d",
     317                     "   %10.5f",
    313318                     co.Sat[ii].IOD,
    314319                     co.Sat[ii].Clock.DeltaA0,
     
    320325                     co.Sat[ii].Orbit.DotDeltaAlongTrack,
    321326                     co.Sat[ii].Orbit.DotDeltaCrossTrack,
    322                      co.Sat[ii].Clock.DeltaA2,
    323                      co.SSRProviderID, co.SSRSolutionID, co.SSRIOD);
     327                     co.Sat[ii].Clock.DeltaA2);
    324328        retLines << linePart+line;
    325329      }
     
    332336        line.sprintf("   %3d"
    333337                     "   %8.3f %8.3f %8.3f"
    334                      "   %10.5f %10.5f %10.5f"
    335                      "   %5d %2d %2d",
     338                     "   %10.5f %10.5f %10.5f",
    336339                     co.Sat[ii].IOD,
    337340                     co.Sat[ii].Orbit.DeltaRadial,
     
    340343                     co.Sat[ii].Orbit.DotDeltaRadial,
    341344                     co.Sat[ii].Orbit.DotDeltaAlongTrack,
    342                      co.Sat[ii].Orbit.DotDeltaCrossTrack,
    343                      co.SSRProviderID, co.SSRSolutionID, co.SSRIOD);
     345                     co.Sat[ii].Orbit.DotDeltaCrossTrack);
    344346        retLines << linePart+line;
    345347      }
     
    416418  return retLines;
    417419}
     420
     421//
     422////////////////////////////////////////////////////////////////////////////
     423void RTCM3coDecoder::checkProviderID() {
     424
     425  if (_co.SSRProviderID == 0 && _co.SSRSolutionID == 0 && _co.SSRIOD == 0) {
     426    return;
     427  }
     428
     429  int newProviderID[3];
     430  newProviderID[0] = _co.SSRProviderID;
     431  newProviderID[1] = _co.SSRSolutionID;
     432  newProviderID[2] = _co.SSRIOD;
     433
     434  bool alreadySet = false;
     435  bool different  = false;
     436
     437  for (unsigned ii = 0; ii < 3; ii++) {
     438    if (_providerID[ii] != -1) {
     439      alreadySet = true;
     440    }
     441    if (_providerID[ii] != newProviderID[ii]) {
     442      different = true;
     443    }
     444    _providerID[ii] = newProviderID[ii];
     445  }
     446   
     447  if (alreadySet && different) {
     448    emit newMessage("RTCM3coDecoder: Provider Changed\n", true);
     449  }
     450}
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.h

    r5120 r5576  
    5555 private:
    5656  void printLine(const QString& line, int GPSweek, double GPSweeks);
     57  void checkProviderID();
    5758  std::ofstream* _out;
    5859  QString        _staID;
     
    6364  ClockOrbit     _co;
    6465  Bias           _bias;
     66  int            _providerID[3];
    6567};
    6668
  • trunk/BNC/src/bncephuser.cpp

    r5565 r5576  
    217217       >> dClk       >> rao[0]       >> rao[1]       >> rao[2]
    218218       >> dotDClk    >> dotRao[0]    >> dotRao[1]    >> dotRao[2]
    219        >> dotDotDClk >> streamID[0]  >> streamID[1]  >> streamID[2];
     219       >> dotDotDClk;
    220220
    221221    dClk       /= t_CST::c;
     
    232232    in >> iod
    233233       >> rao[0]       >> rao[1]       >> rao[2]
    234        >> dotRao[0]    >> dotRao[1]    >> dotRao[2]
    235        >> streamID[0]  >> streamID[1]  >> streamID[2];
     234       >> dotRao[0]    >> dotRao[1]    >> dotRao[2];
    236235
    237236    tRao.set(GPSweek, GPSweeks);
  • trunk/BNC/src/bncephuser.h

    r5567 r5576  
    5151    dotRao      = 0.0;
    5252    eph         = 0;
    53     streamID[0] = -1;
    54     streamID[1] = -1;
    55     streamID[2] = -1;
    5653  }
    5754 
     
    8582  ColumnVector dotRao;
    8683  const t_eph* eph;
    87   int          streamID[3];
    8884};
    8985
  • trunk/BNC/src/bncpppclient.cpp

    r5570 r5576  
    7070  _model = new bncModel(this);
    7171
    72   _streamID[0] = -1;
    73   _streamID[1] = -1;
    74   _streamID[2] = -1;
    75 
    7672  if (connectSlots) {
    7773    connect(this, SIGNAL(newMessage(QByteArray,bool)),
     
    299295      }
    300296      cc->readLine(line);
    301       checkProviderID(cc);
    302297      _corr_tt = cc->tClk;
    303298    }
     
    533528}
    534529
    535 //
    536 ////////////////////////////////////////////////////////////////////////////
    537 void bncPPPclient::checkProviderID(const t_corr* corr) {
    538 
    539   bool alreadySet = false;
    540   bool different  = false;
    541 
    542   for (unsigned ii = 0; ii < 3; ii++) {
    543     if (_streamID[ii] != -1) {
    544       alreadySet = true;
    545     }
    546     if (corr->streamID[ii] != -1) {
    547       if (_streamID[ii] != corr->streamID[ii]) {
    548         different = true;
    549       }
    550       _streamID[ii] = corr->streamID[ii];
    551     }
    552   }
    553    
    554   if (alreadySet && different) {
    555     delete _model;
    556     _model = new bncModel(this);
    557   }
    558 }
  • trunk/BNC/src/bncpppclient.h

    r5569 r5576  
    158158  void processFrontEpoch();
    159159  t_irc cmpToT(t_satData* satData);
    160   void checkProviderID(const t_corr* corr);
    161160
    162161  t_pppOpt*               _opt;
     
    169168  bncModel*               _model;
    170169  QMap<QString, slipInfo> _slips;
    171   int                     _streamID[3];
    172170};
    173171
  • trunk/BNC/src/combination/bnccomb.cpp

    r5565 r5576  
    709709    int messageType   = COTYPE_GPSCOMBINED;
    710710    int updateInt     = 0;
    711     int SSRProviderID = 0;
    712     int SSRSolutionID = 0;
    713     int SSRIOD        = 0;
    714711    line.sprintf("%d %d %d %.1f %s"
    715712                 "   %3d"
    716713                 "   %8.3f %8.3f %8.3f %8.3f"
    717714                 "   %10.5f %10.5f %10.5f %10.5f"
    718                  "   %10.5f   %5d %2d %2d INTERNAL",
     715                 "   %10.5f INTERNAL",
    719716                 messageType, updateInt, _resTime.gpsw(), _resTime.gpssec(),
    720717                 corr->prn.toAscii().data(),
     
    728725                 corr->dotRao[1],
    729726                 corr->dotRao[2],
    730                  corr->dotDotDClk * t_CST::c,
    731                  SSRProviderID, SSRSolutionID, SSRIOD);
     727                 corr->dotDotDClk * t_CST::c);
    732728    corrLines << line;
    733729
Note: See TracChangeset for help on using the changeset viewer.