Changeset 5911 in ntrip


Ignore:
Timestamp:
Aug 12, 2014, 3:34:51 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppMain.cpp

    r5906 r5911  
    4343
    4444#include "pppMain.h"
     45#include "pppCrdFile.h"
    4546#include "bncsettings.h"
    4647
     
    211212    }
    212213
     214    // Information from the coordinate file
     215    // ------------------------------------
     216    string crdFileName(settings.value("PPP/crdFile").toString().toAscii().data());
     217    if (!crdFileName.empty()) {
     218      vector<t_pppCrdFile::t_staInfo> staInfoVec;
     219      t_pppCrdFile::readCrdFile(crdFileName, staInfoVec);
     220      for (unsigned ii = 0; ii < staInfoVec.size(); ii++) {
     221        const t_pppCrdFile::t_staInfo& staInfo = staInfoVec[ii];
     222        if (staInfo._name == opt->_roverName) {
     223          opt->_xyzAprRover[0] = staInfo._xyz[0];
     224          opt->_xyzAprRover[1] = staInfo._xyz[1];
     225          opt->_xyzAprRover[2] = staInfo._xyz[2];
     226          opt->_neuEccRover[0] = staInfo._neuAnt[0];
     227          opt->_neuEccRover[1] = staInfo._neuAnt[1];
     228          opt->_neuEccRover[2] = staInfo._neuAnt[2];
     229          opt->_antNameRover   = staInfo._antenna;
     230          break;
     231        }
     232      }
     233    }
     234
    213235    // Some default values
    214236    // -------------------
     
    220242    opt->_eleWgtPhase = false;
    221243
    222     //// beg test
    223     if (opt->_roverName == "FFMJ1") {
    224       opt->_xyzAprRover[0] = 4053455.76;
    225       opt->_xyzAprRover[1] =  617729.79;
    226       opt->_xyzAprRover[2] = 4869395.80;
    227       opt->_antNameRover   = "LEIAR25.R4      LEIT";
    228     }
    229     //// end test
    230 
    231244    _options << opt;
    232245  }
Note: See TracChangeset for help on using the changeset viewer.