Changeset 10608 in ntrip for trunk/BNC/src/bncsp3.cpp


Ignore:
Timestamp:
Feb 13, 2025, 9:50:06 AM (6 days ago)
Author:
stuerze
Message:

inclusion of the 24:00 epoch in orbit and clock product files

File:
1 edited

Legend:

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

    r10578 r10608  
    7474    if (epoTime != _lastEpoTime) {
    7575
    76       // Check the sampling interval (print empty epochs)
    77       // ------------------------------------------------
    78       if (_lastEpoTime.valid() && _sampl > 0) {
    79         for (bncTime ep = _lastEpoTime +_sampl; ep < epoTime; ep = ep +_sampl) {
    80           _out << "\n*  " << ep.datestr(' ') << ' ' << ep.timestr(8, ' ');
     76      // print out epoch before
     77      if (_lastEpoTime.valid()) {
     78        _out << _oStr.str();
     79        if (_lastEpoTime.daysec() != 0.0) {
     80          _oStr.str(std::string());
     81        }
     82        // Check the sampling interval (print empty epochs)
     83        // ------------------------------------------------
     84        if (_sampl > 0) {
     85          for (bncTime ep = _lastEpoTime +_sampl; ep < epoTime; ep = ep +_sampl) {
     86            _oStr << "\n*  " << ep.datestr(' ') << ' ' << ep.timestr(8, ' ');
     87          }
    8188        }
    8289      }
     
    8491      // Print the new epoch
    8592      // -------------------
    86       _out << "\n*  " << epoTime.datestr(' ') << ' ' << epoTime.timestr(8, ' ');
     93      _oStr << "\n*  " << epoTime.datestr(' ') << ' ' << epoTime.timestr(8, ' ');
    8794
    8895      _lastEpoTime = epoTime;
    8996    }
    9097
    91     _out << "\nP" << prn.toLatin1().data()
     98    _oStr << "\nP" << prn.toLatin1().data()
    9299         << setw(14) << setprecision(6) << xCoM(1) / 1000.0 // [km]
    93100         << setw(14) << setprecision(6) << xCoM(2) / 1000.0 // [km]
     
    96103
    97104    if (sp3ClkRate) {
    98       _out << "\nV" << prn.toLatin1().data()
     105      _oStr << "\nV" << prn.toLatin1().data()
    99106           << setw(14) << setprecision(6) << v(1) * 10.0      // [dm/s]
    100107           << setw(14) << setprecision(6) << v(2) * 10.0      // [dm/s]
     
    177184       << "/*                                                          \n"
    178185       << "/*                                                          \n"
    179        << "/*                                                          \n";
     186       << "/*                                                          ";
    180187}
    181188
Note: See TracChangeset for help on using the changeset viewer.