Changeset 5157 in ntrip for trunk/BNC/src/bncmodel.cpp


Ignore:
Timestamp:
May 26, 2013, 11:24:09 AM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncmodel.cpp

    r5070 r5157  
    110110  }
    111111
     112  // Glonass Offset
     113  // --------------
     114  else if (type == GLONASS_OFFSET) {
     115    if (satData->prn[0] == 'R') {
     116      return 1.0;
     117    }
     118    else {
     119      return 0.0;
     120    }
     121  }
     122
    112123  // Galileo Offset
    113124  // --------------
     
    228239    _params.push_back(new bncParam(bncParam::TROPO, ++nextPar, ""));
    229240  }
     241  if (_opt->useGlonass) {
     242    _params.push_back(new bncParam(bncParam::GLONASS_OFFSET, ++nextPar, ""));
     243  }
    230244  if (_opt->useGalileo) {
    231245    _params.push_back(new bncParam(bncParam::GALILEO_OFFSET, ++nextPar, ""));
     
    246260      _QQ(iPar,iPar) = _opt->sigTrp0 * _opt->sigTrp0;
    247261      pp->xx = lastTrp;
     262    }
     263    else if (pp->type == bncParam::GLONASS_OFFSET) {
     264      _QQ(iPar,iPar) = _opt->sigGlonassOffset0 * _opt->sigGlonassOffset0;
    248265    }
    249266    else if (pp->type == bncParam::GALILEO_OFFSET) {
     
    334351
    335352  double offset = 0.0;
    336   if (satData->prn[0] == 'E') {
     353  if      (satData->prn[0] == 'R') {
     354    offset = Glonass_offset();
     355  }
     356  else if (satData->prn[0] == 'E') {
    337357    offset = Galileo_offset();
    338358  }
     
    483503      }
    484504   
     505      // Glonass Offset
     506      // --------------
     507      else if (pp->type == bncParam::GLONASS_OFFSET) {
     508        _QQ(iPar,iPar) += _opt->sigGlonassOffsetP * _opt->sigGlonassOffsetP;
     509      }
     510
    485511      // Galileo Offset
    486512      // --------------
     
    621647      newPos->xnt[6] = aprTrp + par->xx;
    622648    }
     649    else if (par->type == bncParam::GLONASS_OFFSET) {
     650      strB << "\n    offGlo  = " << setw(10) << setprecision(3) << par->xx
     651           << " +- " << setw(6) << setprecision(3)
     652           << sqrt(_QQ(par->index,par->index));
     653    }
    623654    else if (par->type == bncParam::GALILEO_OFFSET) {
    624       strB << "\n    offset  = " << setw(10) << setprecision(3) << par->xx
     655      strB << "\n    offGal  = " << setw(10) << setprecision(3) << par->xx
    625656           << " +- " << setw(6) << setprecision(3)
    626657           << sqrt(_QQ(par->index,par->index));
Note: See TracChangeset for help on using the changeset viewer.