Changeset 2084 in ntrip


Ignore:
Timestamp:
Dec 6, 2009, 4:57:58 PM (15 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2083 r2084  
    5656const double   sig_crd_p =  100.0;
    5757const double   sig_clk_0 = 1000.0;
     58const double   sig_trp_0 =    0.01;
     59const double   sig_trp_p =    1e-6;
    5860const double   sig_amb_0 =  100.0;
    5961const double   sig_P3    =    1.0;
    60 const double   sig_L3    =   0.01;
     62const double   sig_L3    =    0.01;
    6163
    6264// Constructor
     
    9294    return 1.0;
    9395  }
     96  else if (type == TROPO) {
     97    return 1.0 / sin(satData->eleSat);
     98  }
    9499  else if (type == AMB_L3) {
    95100    if (prnIn == prn) {
     
    106111////////////////////////////////////////////////////////////////////////////
    107112bncModel::bncModel() {
    108   _xcBanc.ReSize(4); _xcBanc = 0.0;
     113
     114  bncSettings settings;
     115
     116  _static = false;
     117  if ( Qt::CheckState(settings.value("pppStatic").toInt()) == Qt::Checked) {
     118    _static = true;
     119  }
     120
     121  _usePhase = false;
     122  if ( Qt::CheckState(settings.value("pppUsePhase").toInt()) == Qt::Checked) {
     123    _usePhase = true;
     124  }
     125
     126  _estTropo = false;
     127  if ( Qt::CheckState(settings.value("pppEstTropo").toInt()) == Qt::Checked) {
     128    _estTropo = true;
     129  }
     130
     131  _xcBanc.ReSize(4);  _xcBanc  = 0.0;
     132  _ellBanc.ReSize(3); _ellBanc = 0.0;
     133
    109134  _params.push_back(new bncParam(bncParam::CRD_X,  1, ""));
    110135  _params.push_back(new bncParam(bncParam::CRD_Y,  2, ""));
    111136  _params.push_back(new bncParam(bncParam::CRD_Z,  3, ""));
    112137  _params.push_back(new bncParam(bncParam::RECCLK, 4, ""));
    113   _ellBanc.ReSize(3);
     138  if (_estTropo) {
     139    _params.push_back(new bncParam(bncParam::TROPO,  5, ""));
     140  }
    114141
    115142  unsigned nPar = _params.size();
     143
    116144  _QQ.ReSize(nPar);
     145  _xx.ReSize(nPar);
    117146  _QQ = 0.0;
     147  _xx = 0.0;
    118148
    119149  _QQ(1,1) = sig_crd_0 * sig_crd_0;
     
    121151  _QQ(3,3) = sig_crd_0 * sig_crd_0;
    122152  _QQ(4,4) = sig_clk_0 * sig_clk_0;
    123 
    124   _xx.ReSize(nPar);
    125   _xx = 0.0;
    126 
    127   bncSettings settings;
    128 
    129   _static = false;
    130   if ( Qt::CheckState(settings.value("pppStatic").toInt()) == Qt::Checked) {
    131     _static = true;
    132   }
    133 
    134   _usePhase = false;
    135   if ( Qt::CheckState(settings.value("pppUsePhase").toInt()) == Qt::Checked) {
    136     _usePhase = true;
     153  if (_estTropo) {
     154    _QQ(5,5) = sig_trp_0 * sig_trp_0;
    137155  }
    138156}
     
    219237  satData->rho = (satData->xx - xRec).norm_Frobenius();
    220238
    221   double tropDelay = delay_saast(satData->eleSat);
     239  double tropDelay = delay_saast(satData->eleSat) +
     240                     trp() / sin(satData->eleSat);
    222241
    223242  return satData->rho + clk() - satData->clk + tropDelay;
     
    371390  _QQ(4,4) = sig_clk_0 * sig_clk_0;
    372391
     392  // Tropospheric Delay
     393  // ------------------
     394  if (_estTropo) {
     395    _params[4]->x0 += _params[4]->xx;
     396    _QQ(5,5) += sig_trp_p * sig_trp_p;
     397  }
     398
    373399  // Ambiguities
    374400  // -----------
  • trunk/BNC/bncmodel.h

    r2083 r2084  
    6363  double z()   const {return _params[2]->solVal();}
    6464  double clk() const {return _params[3]->solVal();}
     65  double trp() const {return _estTropo ? _params[4]->solVal() : 0.0;}
    6566 
    6667 private:
     
    7677  bool               _static;
    7778  bool               _usePhase;
     79  bool               _estTropo;
    7880};
    7981
  • trunk/BNC/bncpppclient.cpp

    r2073 r2084  
    344344  str << "    PPP " << _staID.data() << " "
    345345      << _epoData->tt.timestr(1) << " " << _epoData->size() << " "
    346       << setw(14) << setprecision(3) << _model->x() << "  "
    347       << setw(14) << setprecision(3) << _model->y() << "  "
    348       << setw(14) << setprecision(3) << _model->z();
     346      << setw(14) << setprecision(3) << _model->x()   << "  "
     347      << setw(14) << setprecision(3) << _model->y()   << "  "
     348      << setw(14) << setprecision(3) << _model->z()   << "  "
     349      << setw(8)  << setprecision(3) << _model->clk() << "  "
     350      << setw(8)  << setprecision(3) << _model->trp();
    349351
    350352  emit newMessage(QString(str.str().c_str()).toAscii(), true);
  • trunk/BNC/ppp.gpt

    r2082 r2084  
    99set title "JOZ20"
    1010set ylabel "meters"
    11 set xlabel "5-Dec-2009"
     11set xlabel "6-Dec-2009"
    1212
    1313plot "ppp" u 1:4 t "dH" w p 3, \
Note: See TracChangeset for help on using the changeset viewer.