Changeset 341 in ntrip for trunk/BNC/RTCM


Ignore:
Timestamp:
Dec 1, 2006, 2:24:04 PM (17 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC/RTCM
Files:
2 edited

Legend:

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

    r333 r341  
    3434    flags     = 0;
    3535    StatID[0] = '\0';
    36     SVPRN     = 0;
     36    satSys    = 'G';
     37    satNum    = 0;
     38    slot      = 0;
    3739    GPSWeek   = 0;
    3840    GPSWeeks  = 0.0;
     
    4648  }
    4749  int    flags;
    48   char   StatID[29+1];// Station ID
    49   int    SVPRN;       // Satellite PRN
     50  char   StatID[20+1];// Station ID
     51  char   satSys;      // Satellite System ('G' or 'R')
     52  int    satNum;      // Satellite Number (PRN for GPS NAVSTAR)
     53  int    slot;        // Slot Number (for Glonass)
    5054  int    GPSWeek;     // Week of GPS-Time
    5155  double GPSWeeks;    // Second of Week (GPS-Time)
     
    5559  double L1;          // L1 carrier phase (cycles)
    5660  double L2;          // L2 carrier phase (cycles)
    57   int    SNR1;        // L1 signal-to noise ratio (0.1 dB)
    58   int    SNR2;        // L2 signal-to noise ratio (0.1 dB)
     61  int    SNR1;        // L1 signal-to noise ratio (RINEX convention)
     62  int    SNR2;        // L2 signal-to noise ratio (RINEX convention)
    5963};
    6064
  • trunk/BNC/RTCM/RTCM2Decoder.cpp

    r297 r341  
    7575        for (int iSat=0; iSat < _ObsBlock.nSat; iSat++) {
    7676          Observation* obs = new Observation();
    77        
    78           obs->SVPRN    = _ObsBlock.PRN[iSat];
     77          if (_ObsBlock.PRN[iSat] > 100) {
     78            obs->satNum = _ObsBlock.PRN[iSat] % 100;
     79            obs->satSys = 'R';
     80          }
     81          else {
     82            obs->satNum = _ObsBlock.PRN[iSat];
     83            obs->satSys = 'G';
     84          }
    7985          obs->GPSWeek  = epochWeek;
    8086          obs->GPSWeeks = epochSecs;
Note: See TracChangeset for help on using the changeset viewer.