Changeset 2690 in ntrip


Ignore:
Timestamp:
Nov 14, 2010, 11:07:36 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r2689 r2690  
    5858    S2            = 0.0;
    5959    S5            = 0.0;
    60     SNR1          = 0;
    61     SNR2          = 0;
    62     SNR5          = 0;
    6360    StatID[0]     = '\x0';
    6461  }
     
    8178  double L2;            // L2 carrier phase (cycles)
    8279  double L5;            // L5 carrier phase (cycles)
     80  double S1;            // raw L1 signal strength
     81  double S2;            // raw L2 signal strength
     82  double S5;            // raw L5 signal strength
    8383  int    slip_cnt_L1;   // L1 cumulative loss of continuity indicator (negative value = undefined)
    8484  int    slip_cnt_L2;   // L2 cumulative loss of continuity indicator (negative value = undefined)
    8585  int    slip_cnt_L5;   // L5 cumulative loss of continuity indicator (negative value = undefined)
    86   double S1;            // L1 signal-to noise ratio
    87   double S2;            // L2 signal-to noise ratio
    88   double S5;            // L5 signal-to noise ratio
    89   int    SNR1;          // L1 signal-to noise ratio (mapped to integer)
    90   int    SNR2;          // L2 signal-to noise ratio (mapped to integer)
    91   int    SNR5;          // L5 signal-to noise ratio (mapped to integer)
    9286};
    9387
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r2687 r2690  
    371371                           iEntry == GNSSENTRY_L1PDATA) {
    372372                    obs->_o.L1   = gnssData.measdata[iSat][iEntry];
    373                     obs->_o.SNR1 = gnssData.snrL1[iSat];
    374373                  }
    375374                  else if (iEntry == GNSSENTRY_L2CDATA ||
    376375                           iEntry == GNSSENTRY_L2PDATA) {
    377376                    obs->_o.L2   = gnssData.measdata[iSat][iEntry];
    378                     obs->_o.SNR2 = gnssData.snrL2[iSat];
    379377                  }
    380378                  else if (iEntry == GNSSENTRY_S1CDATA ||
  • trunk/BNC/RTIGS/RTIGSDecoder.cpp

    r2585 r2690  
    129129      obs->_o.S1       = _GPSTrans.DecObs.Obs[ii].l1_sn;
    130130      obs->_o.S2       = _GPSTrans.DecObs.Obs[ii].l2_sn;
    131       obs->_o.SNR1     = int(ceil(_GPSTrans.DecObs.Obs[ii].l1_sn / 60.0 * 9.0));
    132       obs->_o.SNR2     = int(ceil(_GPSTrans.DecObs.Obs[ii].l2_sn / 60.0 * 9.0));
    133131    }
    134132  }
  • trunk/BNC/bnccaster.cpp

    r2647 r2690  
    368368          _out->setFieldWidth(1); *_out << " ";
    369369          _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->_o.S2;
    370           _out->setFieldWidth(1);
    371           *_out << " " << obs->_o.SNR1 << " " << obs->_o.SNR2 << endl;
     370          *_out << endl;
    372371          if (!it.hasNext()) {
    373372            _out->setFieldWidth(1); *_out << endEpoch << endl;
  • trunk/BNC/bncrinex.cpp

    r2689 r2690  
    413413      else if (line.indexOf("# / TYPES OF OBSERV") != -1) {
    414414        if (_rinexVers == 3) {
    415           _out << "G   10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P              SYS / # / OBS TYPES" << endl;
    416           _out << "R   10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P              SYS / # / OBS TYPES" << endl;
     415          _out << "G    8 C1C C1P L1C S1C C2W C2P L2W S2W                      SYS / # / OBS TYPES" << endl;
     416          _out << "R    8 C1C C1P L1C S1C C2C C2P L2C S2C                      SYS / # / OBS TYPES" << endl;
    417417          _out << "E    6 C1X L1X S1X C5X L5X S5X                              SYS / # / OBS TYPES" << endl;
    418418          _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
    419419        }
    420420        else {
    421           _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2"
     421          _out << "     8    C1    P1    L1    S1    C2    P2    L2    S2"
    422422                  "      # / TYPES OF OBSERV"  << endl;
    423423        }
     
    485485         << "                  "                                     << "ANTENNA: DELTA H/E/N" << endl;
    486486    if (_rinexVers == 3) {
    487       _out << "G   10 C1C C1P L1C S1C C2W C2P L2W S2W L2P S2P              SYS / # / OBS TYPES" << endl;
    488       _out << "R   10 C1C C1P L1C S1C C2C C2P L2C S2C L2P S2P              SYS / # / OBS TYPES" << endl;
     487      _out << "G    8 C1C C1P L1C S1C C2W C2P L2W S2W                      SYS / # / OBS TYPES" << endl;
     488      _out << "R    8 C1C C1P L1C S1C C2C C2P L2C S2C                      SYS / # / OBS TYPES" << endl;
    489489      _out << "E    6 C1X L1X S1X C5X L5X S5X                              SYS / # / OBS TYPES" << endl;
    490490      _out << "S    3 C1C L1C S1C                                          SYS / # / OBS TYPES" << endl;
     
    492492    else {
    493493      _out << "     1     1                                                WAVELENGTH FACT L1/2" << endl;
    494       _out << "     8    C1    C2    P1    P2    L1    L2    S1    S2      # / TYPES OF OBSERV"  << endl;
     494      _out << "     8    C1    P1    L1    S1    C2    P2    L2    S2      # / TYPES OF OBSERV"  << endl;
    495495    }
    496496    _out << datTim.toString("  yyyy    MM    dd"
     
    633633        _out << obs->_o.satSys
    634634             << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ')
    635              << setw(14) << setprecision(3) << obs->_o.C1 << "  " 
    636              << setw(14) << setprecision(3) << obs->_o.P1 << "  " 
    637              << setw(14) << setprecision(3) << obs->_o.L1 << lli1
    638              << setw(1)                     << obs->_o.SNR1
    639              << setw(14) << setprecision(3) << obs->_o.S1 << "  "
    640              << setw(14) << setprecision(3) << obs->_o.C2 << "  " 
    641              << setw(14) << setprecision(3) << obs->_o.P2 << "  " ;
    642         if ((obs->_o.C2 != 0.0) && (obs->_o.P2 == 0.0)) {
    643           _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2
    644                << setw(1)                     << obs->_o.SNR2
    645                << setw(14) << setprecision(3) << obs->_o.S2 << "  "
    646                << "         0.000           0.000  ";
    647         }
    648         else {
    649           _out << "         0.000           0.000  "
    650                << setw(14) << setprecision(3) << obs->_o.L2 << " "
    651                << setw(1)                     << obs->_o.SNR2
    652                << setw(14) << setprecision(3) << obs->_o.S2;
    653         }
    654         _out << endl;
     635             << setw(14) << setprecision(3) << obs->_o.C1 << ' '  << ' ' 
     636             << setw(14) << setprecision(3) << obs->_o.P1 << ' '  << ' ' 
     637             << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' '
     638             << setw(14) << setprecision(3) << obs->_o.S1 << ' '  << ' '
     639             << setw(14) << setprecision(3) << obs->_o.C2 << ' '  << ' ' 
     640             << setw(14) << setprecision(3) << obs->_o.P2 << ' '  << ' '
     641             << setw(14) << setprecision(3) << obs->_o.L2 << lli2 << ' '
     642             << setw(14) << setprecision(3) << obs->_o.S2 << endl;
    655643      }
    656644      else if (obs->_o.satSys == 'S') { // SBAS
    657645        _out << obs->_o.satSys
    658646             << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ')
    659              << setw(14) << setprecision(3) << obs->_o.C1 << "  " 
    660              << setw(14) << setprecision(3) << obs->_o.P1 << "  " 
    661              << setw(14) << setprecision(3) << obs->_o.L1 << lli1
    662              << setw(1)                     << obs->_o.SNR1
     647             << setw(14) << setprecision(3) << obs->_o.C1 << ' '  << ' ' 
     648             << setw(14) << setprecision(3) << obs->_o.P1 << ' '  << ' ' 
     649             << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' '
    663650             << setw(14) << setprecision(3) << obs->_o.S1 << endl;
    664651      }
     
    666653        _out << obs->_o.satSys
    667654             << setw(2) << setfill('0') << obs->_o.satNum << setfill(' ')
    668              << setw(14) << setprecision(3) << obs->_o.C1 << "  " 
    669              << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << " "
    670              << setw(14) << setprecision(3) << obs->_o.S1 << "  "
    671              << setw(14) << setprecision(3) << obs->_o.C5 << "  " 
    672              << setw(14) << setprecision(3) << obs->_o.L5 << lli5 << " "
     655             << setw(14) << setprecision(3) << obs->_o.C1 << ' '  << ' ' 
     656             << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' '
     657             << setw(14) << setprecision(3) << obs->_o.S1 << ' '  << ' '
     658             << setw(14) << setprecision(3) << obs->_o.C5 << ' '  << ' ' 
     659             << setw(14) << setprecision(3) << obs->_o.L5 << lli5 << ' '
    673660             << setw(14) << setprecision(3) << obs->_o.S5 << endl;
    674661      }
     
    678665    // ---------------
    679666    else {
    680       char lli = ' ';
    681       char snr = ' ';
    682       _out << setw(14) << setprecision(3) << obs->_o.C1 << lli << snr;
    683       _out << setw(14) << setprecision(3) << obs->_o.C2 << lli << snr;
    684       _out << setw(14) << setprecision(3) << obs->_o.P1 << lli << snr;
    685       _out << setw(14) << setprecision(3) << obs->_o.P2 << lli << snr;
    686       _out << setw(14) << setprecision(3) << obs->_o.L1 << lli1
    687            << setw(1) << obs->_o.SNR1 << endl;
    688       _out << setw(14) << setprecision(3) << obs->_o.L2 << lli2
    689            << setw(1) << obs->_o.SNR2;
    690       _out << setw(14) << setprecision(3) << obs->_o.S1 ;
    691       _out << setw(16) << setprecision(3) << obs->_o.S2 ;
    692       _out << endl;
     667      _out << setw(14) << setprecision(3) << obs->_o.C1 << ' '  << ' '
     668           << setw(14) << setprecision(3) << obs->_o.P1 << ' '  << ' '
     669           << setw(14) << setprecision(3) << obs->_o.L1 << lli1 << ' '
     670           << setw(14) << setprecision(3) << obs->_o.S1 << ' '  << ' '
     671           << setw(14) << setprecision(3) << obs->_o.C2 << ' '  << ' ' << endl
     672           << setw(14) << setprecision(3) << obs->_o.P2 << ' '  << ' '
     673           << setw(14) << setprecision(3) << obs->_o.L2 << lli2 << ' '
     674           << setw(16) << setprecision(3) << obs->_o.S2 << endl;
    693675    }
    694676
Note: See TracChangeset for help on using the changeset viewer.