Changeset 223 in ntrip


Ignore:
Timestamp:
Oct 7, 2006, 12:08:31 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnchelp.html

    r217 r223  
    161161const char endEpoch = 'C';
    162162struct Observation {
    163   char     StatID[5+1];    // Station ID
    164   char     SVPRN;          // Satellite PRN
    165   short    GPSWeek;        // Week of GPS-Time
    166   int      GPSWeeks;       // Second of Week (GPS-Time)
    167   double   sec;            // second
    168   double   C1;             // CA or P1-code pseudorange (meters)
    169   double   P2;             // P2-code pseudorange (meters)
    170   double   L1;             // L1-carrier phase (meters)
    171   double   L2;             // L2-carrier phase (meters)
    172   short    SNR1;           // Signal-to noise ratio (0.1 dB)
    173   short    SNR2;           // Signal-to noise ratio (0.1 dB)
    174   int      pCodeIndicator; // 0 ... CA Code, 1 ... P Code
    175   unsigned cumuLossOfCont; // Loss of lock indicator (0 to 31)
     163  int    flags;
     164  char   StatID[5+1]; // Station ID
     165  int    SVPRN;       // Satellite PRN
     166  int    GPSWeek;     // Week of GPS-Time
     167  double GPSWeeks;    // Second of Week (GPS-Time)
     168  double C1;          // CA-code pseudorange (meters)
     169  double P1;          // P1-code pseudorange (meters)
     170  double P2;          // P2-code pseudorange (meters)
     171  double L1;          // L1 carrier phase (cycles)
     172  double L2;          // L2 carrier phase (cycles)
     173  int    SNR1;        // L1 signal-to noise ratio (0.1 dB)
     174  int    SNR2;        // L2 signal-to noise ratio (0.1 dB)
    176175} ;
    177176</pre>
  • trunk/BNC/bncrinex.cpp

    r222 r223  
    2929#include "bncutils.h"
    3030#include "bncconst.h"
     31#include "RTCM3/rtcm3torinex.h"
    3132
    3233using namespace std;
     
    321322    iSat++;
    322323    Observation* ob = it.next();
    323     _out << " " << setw(2) << int(ob->SVPRN);
     324    int prn = ob->SVPRN;
     325    if        (prn <= PRN_GPS_END) {
     326      _out << "G" << setw(2) << prn;
     327    }
     328    else if (prn >= PRN_GLONASS_START && prn <= PRN_GLONASS_END) {
     329      _out << "R" << setw(2) << prn - PRN_GLONASS_START + 1;
     330    }
     331    else {
     332      _out << setw(3) << prn;
     333    }
    324334    if (iSat == 12 && it.hasNext()) {
    325335      _out << endl << "                                ";
Note: See TracChangeset for help on using the changeset viewer.