Changeset 223 in ntrip for trunk/BNC/bncrinex.cpp


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.