Changeset 232 in ntrip
- Timestamp:
- Oct 8, 2006, 5:49:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/test_bnc.cpp
r38 r232 8 8 #endif 9 9 10 #include "RTCM/GPSDecoder.h" 11 10 12 using namespace std; 11 13 … … 13 15 const char begObs = 'B'; 14 16 const char endEpoch = 'C'; 15 16 struct Observation {17 char StatID[5+1]; // Station ID18 char SVPRN; // Satellite PRN19 short GPSWeek; // Week of GPS-Time20 int GPSWeeks; // Second of Week (GPS-Time)21 double sec; // second22 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 Code29 unsigned cumuLossOfCont; // 0 to 3130 } ;31 17 32 18 int main(int argc, char* argv[]) { … … 83 69 bytesRecv = recv( ConnectSocket, (char*) &obs, sizeof(obs), 0); 84 70 cout << setw(5) << obs.StatID << " " 85 << setw(2) << (int) obs.SVPRN<< " "71 << setw(2) << obs.SVPRN << " " 86 72 << setw(4) << obs.GPSWeek << " " 87 << setw(6) << obs.GPSWeeks << " " 88 << setw(8) << setprecision(4) << obs.sec << " " 73 << setw(10) << setprecision(2) << obs.GPSWeeks << " " 89 74 << setw(14) << setprecision(4) << obs.C1 << " " 75 << setw(14) << setprecision(4) << obs.P1 << " " 90 76 << setw(14) << setprecision(4) << obs.P2 << " " 91 77 << setw(14) << setprecision(4) << obs.L1 << " " 92 78 << setw(14) << setprecision(4) << obs.L2 << " " 93 79 << 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; 97 81 } 98 82 }
Note:
See TracChangeset
for help on using the changeset viewer.