Ignore:
Timestamp:
May 8, 2014, 3:22:32 PM (10 years ago)
Author:
stuerze
Message:

trafo parameter for ITRF2008=>SIRGAS2000 adjusted with respect to reference document www.ibge.gov.br/home/geociencias/geodesia/ppp/manual_ppp.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncrtnetuploadcaster.cpp

    r5655 r5662  
    1111 * Created:    29-Mar-2011
    1212 *
    13  * Changes:   
     13 * Changes:
    1414 *
    1515 * -----------------------------------------------------------------------*/
    1616
    1717#include <math.h>
    18 #include "bncrtnetuploadcaster.h" 
     18#include "bncrtnetuploadcaster.h"
    1919#include "bncsettings.h"
    2020#include "bncephuser.h"
     
    2828bncRtnetUploadCaster::bncRtnetUploadCaster(const QString& mountpoint,
    2929                                 const QString& outHost, int outPort,
    30                                  const QString& password, 
    31                                  const QString& crdTrafo, bool  CoM, 
     30                                 const QString& password,
     31                                 const QString& crdTrafo, bool  CoM,
    3232                                 const QString& sp3FileName,
    3333                                 const QString& rnxFileName,
     
    156156    _oyr =  0.000000;
    157157    _ozr =  0.000000;
    158     _sc  =     0.000;
     158    _sc  =    -1.000;
    159159    _scr =     0.000;
    160160    _t0  =    0000.0;
     
    225225}
    226226
    227 // 
     227//
    228228////////////////////////////////////////////////////////////////////////////
    229229void bncRtnetUploadCaster::decodeRtnetStream(char* buffer, int bufLen) {
    230                                        
     230
    231231  QMutexLocker locker(&_mutex);
    232232
     
    274274  bncTime epoTime; epoTime.set( year, month, day, hour, min, sec);
    275275
    276   emit(newMessage("bncRtnetUploadCaster: decode " + 
     276  emit(newMessage("bncRtnetUploadCaster: decode " +
    277277                  QByteArray(epoTime.datestr().c_str()) + " " +
    278                   QByteArray(epoTime.timestr().c_str()) + " " + 
     278                  QByteArray(epoTime.timestr().c_str()) + " " +
    279279                  _casterID.toAscii(), false));
    280280
     
    290290  co.SSRProviderID     = _PID; // 256 .. BKG,  257 ... EUREF
    291291  co.SSRSolutionID     = _SID;
    292  
     292
    293293  struct Bias bias;
    294294  memset(&bias, 0, sizeof(bias));
    295295  bias.GPSEpochTime     = co.GPSEpochTime;
    296296  bias.GLONASSEpochTime = co.GLONASSEpochTime;
    297  
     297
    298298  // Default Update Interval
    299299  // -----------------------
     
    332332
    333333  for (int ii = 1; ii < lines.size(); ii++) {
    334  
     334
    335335    QString      prn;
    336336    ColumnVector rtnAPC;
     
    338338    ColumnVector rtnCoM;
    339339    double       rtnClk;
    340  
     340
    341341    QTextStream in(lines[ii].toAscii());
    342342
     
    418418          }
    419419        }
    420       } 
     420      }
    421421      struct ClockOrbit::SatData* sd = 0;
    422422      if      (prn[0] == 'G') {
     
    430430      if (sd) {
    431431        QString outLine;
    432         processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prn, 
     432        processSatellite(eph, epoTime.gpsw(), epoTime.gpssec(), prn,
    433433                         rtnAPC, rtnClk, rtnVel, rtnCoM, sd, outLine);
    434434      }
    435  
     435
    436436      struct Bias::BiasSat* biasSat = 0;
    437437      if      (prn[0] == 'G') {
     
    443443        ++bias.NumberOfGLONASSSat;
    444444      }
    445  
     445
    446446      // Code Biases
    447447      // -----------
     
    567567  }
    568568
    569   QByteArray hlpBufferCo; 
     569  QByteArray hlpBufferCo;
    570570
    571571  // Orbit and Clock Corrections together
     
    616616    }
    617617  }
    618  
     618
    619619  // Biases
    620620  // ------
    621   QByteArray hlpBufferBias; 
     621  QByteArray hlpBufferBias;
    622622  if (bias.NumberOfGPSSat > 0 || bias.NumberOfGLONASSSat > 0) {
    623623    char obuffer[CLOCKORBIT_BUFFERSIZE];
     
    631631}
    632632
    633 // 
     633//
    634634////////////////////////////////////////////////////////////////////////////
    635 void bncRtnetUploadCaster::processSatellite(t_eph* eph, int GPSweek, 
     635void bncRtnetUploadCaster::processSatellite(t_eph* eph, int GPSweek,
    636636                                            double GPSweeks, const QString& prn,
    637637                                            const ColumnVector& rtnAPC,
     
    647647  ColumnVector vB(3);
    648648  eph->position(GPSweek, GPSweeks, xB.data(), vB.data());
    649  
     649
    650650  // Precise Position
    651651  // ----------------
    652652  ColumnVector xP = _CoM ? rtnCoM : rtnAPC;
    653653
    654   double dc = 0.0;   
     654  double dc = 0.0;
    655655  if (_crdTrafo != "IGS08") {
    656656    crdTrafo(GPSweek, xP, dc);
    657657  }
    658  
     658
    659659  // Difference in xyz
    660660  // -----------------
    661661  ColumnVector dx = xB.Rows(1,3) - xP;
    662662  ColumnVector dv = vB           - rtnVel;
    663  
     663
    664664  // Difference in RSW
    665665  // -----------------
     
    688688  }
    689689
    690   outLine.sprintf("%d %.1f %s  %3d  %10.3f  %8.3f %8.3f %8.3f\n", 
     690  outLine.sprintf("%d %.1f %s  %3d  %10.3f  %8.3f %8.3f %8.3f\n",
    691691                  GPSweek, GPSweeks, eph->prn().toAscii().data(),
    692692                  eph->IOD(), dClk, rsw(1), rsw(2), rsw(3));
     
    705705// Transform Coordinates
    706706////////////////////////////////////////////////////////////////////////////
    707 void bncRtnetUploadCaster::crdTrafo(int GPSWeek, ColumnVector& xyz, 
     707void bncRtnetUploadCaster::crdTrafo(int GPSWeek, ColumnVector& xyz,
    708708                                    double& dc) {
    709709
Note: See TracChangeset for help on using the changeset viewer.