Changeset 4264 in ntrip
- Timestamp:
- Jun 22, 2012, 11:23:02 AM (12 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/GPSDecoder.h
r3529 r4264 71 71 ~t_obs() {} 72 72 73 double L1() const {return (L1P != 0.0 ? L1P : L1C);} 74 double L2() const {return (L2P != 0.0 ? L2P : L2C);} 75 double S1() const {return (L1P != 0.0 ? S1P : S1C);} 76 double S2() const {return (L2P != 0.0 ? S2P : S2C);} 73 double p1() const {return (P1 != 0.0 ? P1 : C1);} 74 double p2() const {return (P2 != 0.0 ? P2 : C2);} 75 double l1() const {return (L1P != 0.0 ? L1P : L1C);} 76 double l2() const {return (L2P != 0.0 ? L2P : L2C);} 77 double s1() const {return (L1P != 0.0 ? S1P : S1C);} 78 double s2() const {return (L2P != 0.0 ? S2P : S2C);} 77 79 78 80 char StatID[20+1]; // Station ID -
trunk/BNC/bncpppclient.cpp
r4149 r4264 160 160 // -------------------- 161 161 if (obs.satSys == 'G') { 162 if ( (obs.P1 || obs.C1) && (obs.P2 || obs.C2) && obs. L1() && obs.L2() ) {162 if ( (obs.P1 || obs.C1) && (obs.P2 || obs.C2) && obs.l1() && obs.l2() ) { 163 163 double f1 = t_CST::freq1; 164 164 double f2 = t_CST::freq2; … … 177 177 satData->P2 = obs.C2; 178 178 } 179 satData->L1 = obs. L1() * t_CST::c / f1;180 satData->L2 = obs. L2() * t_CST::c / f2;179 satData->L1 = obs.l1() * t_CST::c / f1; 180 satData->L2 = obs.l2() * t_CST::c / f2; 181 181 satData->P3 = c1 * satData->P1 + c2 * satData->P2; 182 182 satData->L3 = c1 * satData->L1 + c2 * satData->L2; … … 193 193 // ------------------------ 194 194 else if (obs.satSys == 'R') { 195 if ( (obs.P1 || obs.C1) && (obs.P2 || obs.C2) && obs. L1() && obs.L2() ) {195 if ( (obs.P1 || obs.C1) && (obs.P2 || obs.C2) && obs.l1() && obs.l2() ) { 196 196 double f1 = 1602000000.0 + 562500.0 * obs.slotNum; 197 197 double f2 = 1246000000.0 + 437500.0 * obs.slotNum; … … 210 210 satData->P2 = obs.C2; 211 211 } 212 satData->L1 = obs. L1() * t_CST::c / f1;213 satData->L2 = obs. L2() * t_CST::c / f2;212 satData->L1 = obs.l1() * t_CST::c / f1; 213 satData->L2 = obs.l2() * t_CST::c / f2; 214 214 satData->P3 = c1 * satData->P1 + c2 * satData->P2; 215 215 satData->L3 = c1 * satData->L1 + c2 * satData->L2; … … 226 226 // ------------------------ 227 227 else if (obs.satSys == 'E') { 228 if ( obs.C1 && obs.C5 && obs. L1() && obs.L5) {228 if ( obs.C1 && obs.C5 && obs.l1() && obs.L5) { 229 229 double f1 = t_CST::freq1; 230 230 double f5 = t_CST::freq5; … … 234 234 satData->P1 = obs.C1; 235 235 satData->P5 = obs.C5; 236 satData->L1 = obs. L1() * t_CST::c / f1;236 satData->L1 = obs.l1() * t_CST::c / f1; 237 237 satData->L5 = obs.L5 * t_CST::c / f5; 238 238 satData->P3 = c1 * satData->P1 + c5 * satData->P5; -
trunk/BNC/bncrinex.cpp
r3723 r4264 655 655 _out << setw(14) << setprecision(3) << obs.C1 << ' ' << ' ' 656 656 << setw(14) << setprecision(3) << obs.P1 << ' ' << ' ' 657 << setw(14) << setprecision(3) << obs. L1() << lli1 << ' '658 << setw(14) << setprecision(3) << obs. S1() << ' ' << ' '657 << setw(14) << setprecision(3) << obs.l1() << lli1 << ' ' 658 << setw(14) << setprecision(3) << obs.s1() << ' ' << ' ' 659 659 << setw(14) << setprecision(3) << obs.C2 << ' ' << ' ' << endl 660 660 << setw(14) << setprecision(3) << obs.P2 << ' ' << ' ' 661 << setw(14) << setprecision(3) << obs. L2() << lli2 << ' '662 << setw(14) << setprecision(3) << obs. S2() << endl;661 << setw(14) << setprecision(3) << obs.l2() << lli2 << ' ' 662 << setw(14) << setprecision(3) << obs.s2() << endl; 663 663 } 664 664 }
Note:
See TracChangeset
for help on using the changeset viewer.