Changeset 341 in ntrip
- Timestamp:
- Dec 1, 2006, 2:24:04 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/RTCM/GPSDecoder.h ¶
r333 r341 34 34 flags = 0; 35 35 StatID[0] = '\0'; 36 SVPRN = 0; 36 satSys = 'G'; 37 satNum = 0; 38 slot = 0; 37 39 GPSWeek = 0; 38 40 GPSWeeks = 0.0; … … 46 48 } 47 49 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) 50 54 int GPSWeek; // Week of GPS-Time 51 55 double GPSWeeks; // Second of Week (GPS-Time) … … 55 59 double L1; // L1 carrier phase (cycles) 56 60 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) 59 63 }; 60 64 -
TabularUnified trunk/BNC/RTCM/RTCM2Decoder.cpp ¶
r297 r341 75 75 for (int iSat=0; iSat < _ObsBlock.nSat; iSat++) { 76 76 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 } 79 85 obs->GPSWeek = epochWeek; 80 86 obs->GPSWeeks = epochSecs; -
TabularUnified trunk/BNC/RTCM3/RTCM3Decoder.cpp ¶
r320 r341 95 95 for (int ii = 0; ii < _Parser.Data.numsats; ii++) { 96 96 Observation* obs = new Observation(); 97 obs->SVPRN = _Parser.Data.satellites[ii]; 97 if (_Parser.Data.satellites[ii] <= PRN_GPS_END) { 98 obs->satSys = 'G'; 99 obs->satNum = _Parser.Data.satellites[ii]; 100 } 101 else { 102 obs->satSys = 'R'; 103 obs->satNum = _Parser.Data.satellites[ii] - PRN_GLONASS_START + 1; 104 } 98 105 obs->GPSWeek = _Parser.Data.week; 99 106 obs->GPSWeeks = _Parser.Data.timeofweek / 1000.0; -
TabularUnified trunk/BNC/RTIGS/RTIGSDecoder.cpp ¶
r323 r341 106 106 for (short ii = 0; ii < numObs; ii++) { 107 107 Observation* obs = new Observation(); 108 109 obs-> SVPRN= _GPSTrans.DecObs.Obs[ii].sat_prn;108 obs->satSys = 'G'; 109 obs->satNum = _GPSTrans.DecObs.Obs[ii].sat_prn; 110 110 obs->GPSWeek = _GPSTrans.DecObs.Obs[ii].GPSTime / (7 * 86400); 111 111 obs->GPSWeeks = _GPSTrans.DecObs.Obs[ii].GPSTime % (7 * 86400); -
TabularUnified trunk/BNC/bnccaster.cpp ¶
r336 r341 65 65 _out = new QTextStream(_outFile); 66 66 _out->setRealNumberNotation(QTextStream::FixedNotation); 67 _out->setRealNumberPrecision(5);68 67 } 69 68 else { … … 226 225 if (_out) { 227 226 if (first) { 228 *_out << begEpoch << endl;; 227 _out->setFieldWidth(1); *_out << begEpoch << endl;; 229 228 } 230 *_out << obs->StatID << " " 231 << obs->SVPRN << " " 232 << obs->GPSWeek << " " 233 << obs->GPSWeeks << " " 234 << obs->C1 << " " 235 << obs->P1 << " " 236 << obs->P2 << " " 237 << obs->L1 << " " 238 << obs->L2 << " " 239 << obs->SNR1 << " " 240 << obs->SNR2 << endl; 229 _out->setFieldWidth(sizeof(obs->StatID)); 230 *_out << obs->StatID << " " << obs->satSys; 231 _out->setFieldWidth(2); *_out << obs->satNum << " "; 232 _out->setFieldWidth(1); *_out << obs->slot << " "; 233 _out->setFieldWidth(4); *_out << obs->GPSWeek << " "; 234 _out->setFieldWidth(14); _out->setRealNumberPrecision(7); *_out << obs->GPSWeeks << " "; 235 _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->C1 << " "; 236 _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->P1 << " "; 237 _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->P2 << " "; 238 _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->L1 << " "; 239 _out->setFieldWidth(14); _out->setRealNumberPrecision(3); *_out << obs->L2 << " "; 240 _out->setFieldWidth(1); *_out << obs->SNR1 << " "; 241 _out->setFieldWidth(1); *_out << obs->SNR2 << endl; 241 242 if (!it.hasNext()) { 242 *_out << endEpoch << endl; 243 _out->setFieldWidth(1); *_out << endEpoch << endl; 243 244 } 244 245 } -
TabularUnified trunk/BNC/bncrinex.cpp ¶
r337 r341 443 443 iSat++; 444 444 Observation* ob = it.next(); 445 int prn = ob->SVPRN; 446 if (prn <= PRN_GPS_END) { 447 _out << "G" << setw(2) << prn; 448 } 449 else if (prn >= PRN_GLONASS_START && prn <= PRN_GLONASS_END) { 450 _out << "R" << setw(2) << prn - PRN_GLONASS_START + 1; 451 } 452 else { 453 _out << "R" << setw(2) << prn % 100; 454 } 445 _out << ob->satSys << setw(2) << ob->satNum; 455 446 if (iSat == 12 && it.hasNext()) { 456 447 _out << endl << " ";
Note:
See TracChangeset
for help on using the changeset viewer.