Changeset 5734 in ntrip
- Timestamp:
- Jul 31, 2014, 4:49:34 PM (11 years ago)
- Location:
- trunk/BNC/src/PPP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppClient.cpp
r5733 r5734 6 6 #include <stdexcept> 7 7 8 #include "ppp Main.h"8 #include "pppClient.h" 9 9 #include "ephpool.h" 10 10 #include "obspool.h" … … 22 22 // Global Variable 23 23 ////////////////////////////////////////////////////////////////////////////// 24 t_ppp Main* pppMain= 0;24 t_pppClient* pppClient = 0; 25 25 26 26 // Constructor 27 27 ////////////////////////////////////////////////////////////////////////////// 28 t_ppp Main::t_pppMain() {28 t_pppClient::t_pppClient() { 29 29 _opt = 0; 30 30 _output = 0; … … 40 40 // Destructor 41 41 ////////////////////////////////////////////////////////////////////////////// 42 t_ppp Main::~t_pppMain() {42 t_pppClient::~t_pppClient() { 43 43 delete _log; 44 44 delete _opt; … … 54 54 // 55 55 ////////////////////////////////////////////////////////////////////////////// 56 void t_ppp Main::setOptions(const t_pppOpt* opt) {56 void t_pppClient::setOptions(const t_pppOpt* opt) { 57 57 delete _opt; 58 58 _opt = new t_options(opt); … … 68 68 // 69 69 ////////////////////////////////////////////////////////////////////////////// 70 void t_ppp Main::putGPSEphemeris(const t_ephGPS* eph) {70 void t_pppClient::putGPSEphemeris(const t_ephGPS* eph) { 71 71 _ephPool->putEphemeris(new t_ephGPS(*eph)); 72 72 } … … 74 74 // 75 75 ////////////////////////////////////////////////////////////////////////////// 76 void t_ppp Main::putGloEphemeris(const t_ephGlo* eph) {76 void t_pppClient::putGloEphemeris(const t_ephGlo* eph) { 77 77 _ephPool->putEphemeris(new t_ephGlo(*eph)); 78 78 } … … 80 80 // 81 81 ////////////////////////////////////////////////////////////////////////////// 82 void t_ppp Main::putOrbCorrections(int numCorr, const t_pppOrbCorr* corr) {82 void t_pppClient::putOrbCorrections(int numCorr, const t_pppOrbCorr* corr) { 83 83 for (int ii = 0; ii < numCorr; ii++) { 84 84 _ephPool->putOrbCorrection(new t_orbCorr(corr[ii])); … … 88 88 // 89 89 ////////////////////////////////////////////////////////////////////////////// 90 void t_ppp Main::putClkCorrections(int numCorr, const t_pppClkCorr* corr) {90 void t_pppClient::putClkCorrections(int numCorr, const t_pppClkCorr* corr) { 91 91 for (int ii = 0; ii < numCorr; ii++) { 92 92 _ephPool->putClkCorrection(new t_clkCorr(corr[ii])); … … 96 96 // 97 97 ////////////////////////////////////////////////////////////////////////////// 98 void t_ppp Main::putBiases(int numBiases, const t_pppSatBiases* biases) {98 void t_pppClient::putBiases(int numBiases, const t_pppSatBiases* biases) { 99 99 for (int ii = 0; ii < numBiases; ii++) { 100 100 _obsPool->putBiases(new t_satBias(biases[ii])); … … 104 104 // 105 105 ////////////////////////////////////////////////////////////////////////////// 106 t_irc::irc t_ppp Main::prepareObs(int numSat, const t_pppSatObs* satObs,106 t_irc::irc t_pppClient::prepareObs(int numSat, const t_pppSatObs* satObs, 107 107 vector<t_satObs*>& obsVector, t_time& epoTime) { 108 108 // Default … … 141 141 double dt = satObs->time() - epoTime; 142 142 if (fabs(dt) > MAXSYNC) { 143 LOG << "t_ppp Main::prepareObs asynchronous observations" << endl;143 LOG << "t_pppClient::prepareObs asynchronous observations" << endl; 144 144 return t_irc::failure; 145 145 } … … 154 154 // Compute the Bancroft position, check for blunders 155 155 ////////////////////////////////////////////////////////////////////////////// 156 t_irc::irc t_ppp Main::cmpBancroft(const t_time& epoTime,156 t_irc::irc t_pppClient::cmpBancroft(const t_time& epoTime, 157 157 vector<t_satObs*>& obsVector, 158 158 ColumnVector& xyzc, bool print) { … … 175 175 } 176 176 if (iObs + 1 < OPT->minobs()) { 177 LOG << "t_ppp Main::cmpBancroft not enough observations" << endl;177 LOG << "t_pppClient::cmpBancroft not enough observations" << endl; 178 178 return t_irc::failure; 179 179 } … … 214 214 else { 215 215 t_satObs* satObs = obsVector.at(maxResIndex); 216 LOG << "t_ppp Main::cmpBancroft outlier " << satObs->prn().toString()216 LOG << "t_pppClient::cmpBancroft outlier " << satObs->prn().toString() 217 217 << " " << maxRes << endl; 218 218 delete satObs; … … 226 226 // Compute A Priori GPS-Glonass Offset 227 227 ////////////////////////////////////////////////////////////////////////////// 228 double t_ppp Main::cmpOffGG(vector<t_satObs*>& obsVector) {228 double t_pppClient::cmpOffGG(vector<t_satObs*>& obsVector) { 229 229 230 230 t_lc::type tLC = (OPT->dualFreqRequired() ? t_lc::cIF : t_lc::c1); … … 245 245 satObs->setOutlier(); 246 246 outlierFound = true; 247 LOG << "t_ppp Main::cmpOffGG outlier " << satObs->prn().toString()247 LOG << "t_pppClient::cmpOffGG outlier " << satObs->prn().toString() 248 248 << " " << ll << endl; 249 249 } … … 268 268 // 269 269 ////////////////////////////////////////////////////////////////////////////// 270 void t_ppp Main::initOutput(t_pppOutput* output) {270 void t_pppClient::initOutput(t_pppOutput* output) { 271 271 _output = output; 272 272 _output->_epoTime._mjd = 0; … … 281 281 // 282 282 ////////////////////////////////////////////////////////////////////////////// 283 void t_ppp Main::clearObs() {283 void t_pppClient::clearObs() { 284 284 for (unsigned ii = 0; ii < _obsRover.size(); ii++) { 285 285 delete _obsRover.at(ii); … … 294 294 // 295 295 ////////////////////////////////////////////////////////////////////////////// 296 void t_ppp Main::finish(t_irc::irc irc) {296 void t_pppClient::finish(t_irc::irc irc) { 297 297 298 298 clearObs(); … … 322 322 // 323 323 ////////////////////////////////////////////////////////////////////////////// 324 t_irc::irc t_ppp Main::cmpModel(t_station* station, const ColumnVector& xyzc,324 t_irc::irc t_pppClient::cmpModel(t_station* station, const ColumnVector& xyzc, 325 325 vector<t_satObs*>& obsVector) { 326 326 … … 378 378 // 379 379 ////////////////////////////////////////////////////////////////////////////// 380 t_irc::irc t_ppp Main::createDifferences() {380 t_irc::irc t_pppClient::createDifferences() { 381 381 382 382 vector<t_satObs*>::iterator it = _obsRover.begin(); … … 405 405 // 406 406 ////////////////////////////////////////////////////////////////////////////// 407 void t_ppp Main::processEpoch(int numSatRover, const t_pppSatObs* satObsRover,407 void t_pppClient::processEpoch(int numSatRover, const t_pppSatObs* satObsRover, 408 408 t_pppOutput* output) { 409 409 -
trunk/BNC/src/PPP/pppClient.h
r5733 r5734 1 #ifndef PPP MAIN_H2 #define PPP MAIN_H1 #ifndef PPPCLIENT_H 2 #define PPPCLIENT_H 3 3 4 4 #include <sstream> … … 15 15 class t_filter; 16 16 17 class t_ppp Main{17 class t_pppClient { 18 18 public: 19 t_ppp Main();20 ~t_ppp Main();19 t_pppClient(); 20 ~t_pppClient(); 21 21 void setOptions(const t_pppOpt* opt); 22 22 void putGPSEphemeris(const t_ephGPS* eph); … … 68 68 69 69 /// Pointer to the main object 70 extern BNC::t_ppp Main* pppMain;70 extern BNC::t_pppClient* pppClient; 71 71 72 72 /// Log stream abbreviation 73 #define LOG (*ppp Main->_log)73 #define LOG (*pppClient->_log) 74 74 75 75 /// Options abbreviation 76 #define OPT (ppp Main->_opt)76 #define OPT (pppClient->_opt) 77 77 78 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.