Changeset 10791 in ntrip for trunk/BNC/src/PPP/pppObsPool.cpp


Ignore:
Timestamp:
Dec 3, 2025, 5:37:16 PM (5 weeks ago)
Author:
mervart
Message:

BNC Multifrequency and PPPAR Client (initial version)

File:
1 edited

Legend:

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

    r10034 r10791  
    1515 * -----------------------------------------------------------------------*/
    1616
     17#include <iomanip>
    1718#include "pppObsPool.h"
     19#include "pppClient.h"
    1820
    1921using namespace BNC_PPP;
     
    7476  delete _satCodeBiases[iPrn];
    7577  _satCodeBiases[iPrn] = satCodeBias;
     78  if (OPT->_logMode > t_pppOptions::normal) {
     79    LOG << "codeBias " << string(satCodeBias->_time) << ' ' << satCodeBias->_prn.toString();
     80    for (const auto& bias : satCodeBias->_bias) {
     81      LOG << "  " << bias._rnxType2ch << ' ' << setw(7) << setprecision(3) << bias._value;
     82    }
     83    LOG << endl;
     84  }
    7685}
    7786
     
    8291  delete _satPhaseBiases[iPrn];
    8392  _satPhaseBiases[iPrn] = satPhaseBias;
     93  if (OPT->_logMode > t_pppOptions::normal) {
     94    LOG.setf(ios::fixed);
     95    LOG << "phaseBias " << string(satPhaseBias->_time) << ' ' << satPhaseBias->_prn.toString()
     96        << ' ' << setw(7) << setprecision(2) << satPhaseBias->_yaw     * 180.0 / M_PI
     97        << ' ' << setw(7) << setprecision(3) << satPhaseBias->_yawRate * 180.0 / M_PI;
     98    for (const auto& bias : satPhaseBias->_bias) {
     99      LOG << "  " << bias._rnxType2ch << ' ' << setw(2) << bias._jumpCounter;
     100      if (bias._fixIndicator) {
     101        LOG << " x ";
     102      }
     103      else {
     104        LOG << " . ";
     105      }
     106      LOG << setw(6) << setprecision(3) << bias._value;
     107    }
     108    LOG << endl;
     109  }
     110}
     111
     112//
     113/////////////////////////////////////////////////////////////////////////////
     114void t_pppObsPool::clearCodeBiases(char sys) {
     115  for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN; ++iPrn) {
     116    t_prn prn; prn.set(iPrn);
     117    if (prn.system() == sys) {
     118      delete _satCodeBiases[iPrn];
     119      _satCodeBiases[iPrn] = 0;
     120    }
     121  }
     122}
     123
     124//
     125/////////////////////////////////////////////////////////////////////////////
     126void t_pppObsPool::clearPhaseBiases(char sys) {
     127  for (unsigned iPrn = 1; iPrn <= t_prn::MAXPRN; ++iPrn) {
     128    t_prn prn; prn.set(iPrn);
     129    if (prn.system() == sys) {
     130      delete _satPhaseBiases[iPrn];
     131      _satPhaseBiases[iPrn] = 0;
     132    }
     133  }
    84134}
    85135
Note: See TracChangeset for help on using the changeset viewer.