Changeset 4264 in ntrip


Ignore:
Timestamp:
Jun 22, 2012, 11:23:02 AM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r3529 r4264  
    7171  ~t_obs() {}
    7272
    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);}
    7779
    7880  char   StatID[20+1]; // Station ID
  • trunk/BNC/bncpppclient.cpp

    r4149 r4264  
    160160  // --------------------
    161161  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() ) {
    163163      double f1 = t_CST::freq1;
    164164      double f2 = t_CST::freq2;
     
    177177        satData->P2 = obs.C2;
    178178      }
    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;
    181181      satData->P3      = c1 * satData->P1 + c2 * satData->P2;
    182182      satData->L3      = c1 * satData->L1 + c2 * satData->L2;
     
    193193  // ------------------------
    194194  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() ) {
    196196      double f1 = 1602000000.0 + 562500.0 * obs.slotNum;
    197197      double f2 = 1246000000.0 + 437500.0 * obs.slotNum;
     
    210210        satData->P2 = obs.C2;
    211211      }
    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;
    214214      satData->P3      = c1 * satData->P1 + c2 * satData->P2;
    215215      satData->L3      = c1 * satData->L1 + c2 * satData->L2;
     
    226226  // ------------------------
    227227  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) {
    229229      double f1 = t_CST::freq1;
    230230      double f5 = t_CST::freq5;
     
    234234      satData->P1      = obs.C1;
    235235      satData->P5      = obs.C5;
    236       satData->L1      = obs.L1() * t_CST::c / f1;
     236      satData->L1      = obs.l1() * t_CST::c / f1;
    237237      satData->L5      = obs.L5 * t_CST::c / f5;
    238238      satData->P3      = c1 * satData->P1 + c5 * satData->P5;
  • trunk/BNC/bncrinex.cpp

    r3723 r4264  
    655655      _out << setw(14) << setprecision(3) << obs.C1    << ' '  << ' '
    656656           << 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()  << ' '  << ' '
    659659           << setw(14) << setprecision(3) << obs.C2    << ' '  << ' ' << endl
    660660           << 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;
    663663    }
    664664  }
Note: See TracChangeset for help on using the changeset viewer.