Changeset 3392 in ntrip


Ignore:
Timestamp:
Aug 31, 2011, 11:36:58 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3391 r3392  
    5656using namespace std;
    5757
    58 const unsigned MINOBS       =    5;
    59 const double   MINELE       = 10.0 * M_PI / 180.0;
    60 const double   MAXRES_CODE  = 10.0;
    61 const double   MAXRES_PHASE = 0.04;
     58const unsigned MINOBS                = 5;
     59const double   MINELE                = 10.0 * M_PI / 180.0;
     60const double   MAXRES_CODE           = 10.0;
     61const double   MAXRES_PHASE          = 0.04;
     62const double   GLONASS_WEIGHT_FACTOR = 10.0;
    6263
    6364// Constructor
     
    11181119  // --------------------------
    11191120  ++iObs;
    1120   satData->index = iObs;
     1121  satData->obsIndex = iObs;
    11211122
    11221123  // Phase Observations
     
    11241125  if (iPhase == 1) {
    11251126    ll(iObs)      = satData->L3 - cmpValue(satData, true);
    1126     PP(iObs,iObs) = 1.0 / (_sigL3 * _sigL3) / (ellWgtCoef * ellWgtCoef);
     1127    double sigL3 = _sigL3;
    11271128    if (satData->system() == 'R') {
    1128       ////      PP(iObs,iObs) /= 25.0;
    1129       PP(iObs,iObs) /= 9.0;
    1130     }
     1129      sigL3 /= GLONASS_WEIGHT_FACTOR;
     1130    }
     1131    PP(iObs,iObs) = 1.0 / (sigL3 * sigL3) / (ellWgtCoef * ellWgtCoef);
    11311132    for (int iPar = 1; iPar <= _params.size(); iPar++) {
    11321133      if (_params[iPar-1]->type == bncParam::AMB_L3 &&
     
    11551156  Tracer tracer("bncModel::printRes");
    11561157
    1157   if (satData->index != 0) {
     1158  if (satData->obsIndex != 0) {
    11581159    str << _time.timestr(1)
    11591160        << " RES " << satData->prn.toAscii().data()
    11601161        << (iPhase ? "   L3 " : "   P3 ")
    1161         << setw(9) << setprecision(4) << vv(satData->index) << endl;
     1162        << setw(9) << setprecision(4) << vv(satData->obsIndex) << endl;
    11621163  }
    11631164}
     
    11771178    it.next();
    11781179    t_satData* satData = it.value();
    1179     if (satData->index != 0 && fabs(vv(satData->index)) > maxRes) {
    1180       maxRes = fabs(vv(satData->index));
     1180    if (satData->obsIndex != 0 && fabs(vv(satData->obsIndex)) > maxRes) {
     1181      maxRes = fabs(vv(satData->obsIndex));
    11811182      prn    = satData->prn;
    11821183    }
  • trunk/BNC/bncpppclient.h

    r3386 r3392  
    3535 public:
    3636  t_satData() {
    37     index = 0;
     37    obsIndex = 0;
    3838  }
    3939  ~t_satData() {}
     
    5656  bool         slipFlag;
    5757  double       lambda3;
    58   unsigned     index;
     58  unsigned     obsIndex;
    5959  char system() const {return prn.toAscii()[0];}
    6060};
Note: See TracChangeset for help on using the changeset viewer.