Changeset 2238 in ntrip


Ignore:
Timestamp:
Jan 12, 2010, 1:56:32 PM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2233 r2238  
    6262const double   sig_trp_0    =    0.01;
    6363const double   sig_trp_p    =    1e-6;
    64 const double   sig_amb_0    =  100.0;
     64const double   sig_amb_0    = 1000.0;
    6565const double   sig_P3       =    1.0;
    6666const double   sig_L3       =    0.01;
     
    510510    unsigned nObs = 0;
    511511    if (_usePhase) {
    512       nObs = 2 * epoData->sizeGPS(); // TODO: + epoData->sizeGlo();
     512      nObs = 2 * epoData->sizeGPS() + epoData->sizeGlo();
    513513    }
    514514    else {
     
    565565      QMapIterator<QString, t_satData*> itGlo(epoData->satDataGlo);
    566566      while (itGlo.hasNext()) {
    567         //// TODO        ++iObs;
     567        ++iObs;
    568568        itGlo.next();
    569569        QString    prn     = itGlo.key();
    570570        t_satData* satData = itGlo.value();
     571
     572        double rhoCmp = cmpValue(satData);
     573       
     574        double ellWgtCoeff = 1.0;
     575        ////  double eleD = satData->eleSat * 180.0 / M_PI;
     576        ////  if (eleD < 25.0) {
     577        ////    ellWgtCoeff = 2.5 - (eleD - 10.0) * 0.1;
     578        ////    ellWgtCoeff *= ellWgtCoeff;
     579        ////  }
     580
     581        ll(iObs)      = satData->L3 - rhoCmp;
     582        PP(iObs,iObs) = 1.0 / (sig_L3 * sig_L3) / ellWgtCoeff;
     583        for (int iPar = 1; iPar <= _params.size(); iPar++) {
     584          if (_params[iPar-1]->type == bncParam::AMB_L3 &&
     585              _params[iPar-1]->prn  == prn) {
     586            ll(iObs) -= _params[iPar-1]->xx;
     587          }
     588          AA(iObs, iPar) = _params[iPar-1]->partial(satData, prn);
     589        }
    571590     
    572591        //// beg test
    573         double rhoCmp = cmpValue(satData);
    574         cout.setf(ios::fixed);
    575         cout << prn.toAscii().data() << " " 
    576              << setprecision(3) << rhoCmp      << " "
    577              << setprecision(3) << satData->P3 << " "
    578              << setprecision(3) << satData->L3 << " " << endl;
    579 
    580         //// end test
     592        //double rhoCmp = cmpValue(satData);
     593        //cout.setf(ios::fixed);
     594        //cout << prn.toAscii().data() << " " 
     595        //     << setprecision(3) << rhoCmp      << " "
     596        //     << setprecision(3) << satData->P3 << " "
     597        //     << setprecision(3) << satData->L3 << " " << endl;
     598        //
     599        ////// end test
    581600      }
    582601    }
     
    725744  }
    726745 
    727 ////  // Glonass phase residuals
    728 ////  // -----------------------
    729 ////  if (_usePhase) {
    730 ////    QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo);
    731 ////    while (itGlo.hasNext()) {
    732 ////      itGlo.next();
    733 ////      ++ii;
    734 ////      if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) {
    735 ////        vvMaxPhaseGlo = fabs(vv(ii));
    736 ////        itMaxPhaseGlo = itGlo;
    737 ////      }
    738 ////    }
    739 ////  }
     746  // Glonass phase residuals
     747  // -----------------------
     748  if (_usePhase) {
     749    QMutableMapIterator<QString, t_satData*> itGlo(satDataGlo);
     750    while (itGlo.hasNext()) {
     751      itGlo.next();
     752      ++ii;
     753      if (vvMaxPhaseGlo == 0.0 || fabs(vv(ii)) > vvMaxPhaseGlo) {
     754        vvMaxPhaseGlo = fabs(vv(ii));
     755        itMaxPhaseGlo = itGlo;
     756      }
     757    }
     758  }
    740759
    741760  if      (vvMaxCodeGPS > MAXRES_CODE) {
  • trunk/BNC/bncpppclient.cpp

    r2233 r2238  
    3838 *
    3939 * -----------------------------------------------------------------------*/
     40
     41#include <iomanip>
    4042
    4143#include "bncpppclient.h"
Note: See TracChangeset for help on using the changeset viewer.