Changeset 232 in ntrip


Ignore:
Timestamp:
Oct 8, 2006, 5:49:07 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/test_bnc.cpp

    r38 r232  
    88#endif
    99
     10#include "RTCM/GPSDecoder.h"
     11
    1012using namespace std;
    1113
     
    1315const char begObs   = 'B';
    1416const char endEpoch = 'C';
    15 
    16 struct Observation {
    17   char     StatID[5+1];    // Station ID
    18   char     SVPRN;          // Satellite PRN
    19   short    GPSWeek;        // Week of GPS-Time
    20   int      GPSWeeks;       // Second of Week (GPS-Time)
    21   double   sec;            // second
    22   double   C1;             // CA-code validated raw pseudorange (meters)
    23   double   P2;             // P2-code validated raw pseudorange (meters)
    24   double   L1;             // validated raw carrier phase (meters)
    25   double   L2;             // validated raw carrier phase (meters)
    26   short    SNR1;           // signal-to noise ration (0.1 dB)
    27   short    SNR2;           // signal-to noise ration (0.1 dB)
    28   int      pCodeIndicator; // 0 ... CA Code, 1 ... P Code
    29   unsigned cumuLossOfCont; // 0 to 31
    30 } ;
    3117
    3218int main(int argc, char* argv[]) {
     
    8369        bytesRecv = recv( ConnectSocket, (char*) &obs, sizeof(obs), 0);
    8470        cout << setw(5)                     << obs.StatID         << " "
    85              << setw(2)                     << (int) obs.SVPRN    << " "
     71             << setw(2)                     << obs.SVPRN          << " "
    8672             << setw(4)                     << obs.GPSWeek        << " "
    87              << setw(6)                     << obs.GPSWeeks       << " "
    88              << setw(8)  << setprecision(4) << obs.sec            << " "
     73             << setw(10) << setprecision(2) << obs.GPSWeeks       << " "
    8974             << setw(14) << setprecision(4) << obs.C1             << " "
     75             << setw(14) << setprecision(4) << obs.P1             << " "
    9076             << setw(14) << setprecision(4) << obs.P2             << " "
    9177             << setw(14) << setprecision(4) << obs.L1             << " "
    9278             << setw(14) << setprecision(4) << obs.L2             << " "
    9379             << setw(4)                     << obs.SNR1           << " "
    94              << setw(4)                     << obs.SNR2           << " "
    95              << setw(4)                     << obs.pCodeIndicator << " "
    96              << setw(4)                     << obs.cumuLossOfCont << endl;
     80             << setw(4)                     << obs.SNR2           << endl;
    9781      }
    9882    }
Note: See TracChangeset for help on using the changeset viewer.