Changeset 68 in ntrip for trunk/BNC/RTIGS/rtigs.cpp
- Timestamp:
- Aug 25, 2006, 10:37:03 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTIGS/rtigs.cpp
r67 r68 19 19 20 20 using namespace std; 21 22 #undef L1 23 #undef L2 21 24 22 25 // Constructor … … 71 74 // ---------------- 72 75 if (messType == 200) { 73 RTIGSO_T rtigs_obs; 74 short retval = _GPSTrans.Decode_RTIGS_Obs(p_buf, numbytes, rtigs_obs); 75 if (retval >= 1) { 76 _GPSTrans.print_CMEAS(); 76 RTIGSO_T rtigs_obs; 77 short numObs = _GPSTrans.Decode_RTIGS_Obs(p_buf, numbytes, rtigs_obs); 78 for (short ii = 0; ii < numObs; ii++) { 79 Observation* obs = new Observation(); 80 81 //// obs->statID = 82 obs->SVPRN = _GPSTrans.DecObs.Obs[ii].sat_prn; 83 obs->GPSWeek = _GPSTrans.DecObs.Obs[ii].GPSTime / 7; 84 obs->GPSWeeks = _GPSTrans.DecObs.Obs[ii].GPSTime - 85 obs->GPSWeek * 7 * 86400; 86 //// obs->sec = 87 obs->C1 = _GPSTrans.DecObs.Obs[ii].l1_pseudo_range; 88 //// obs->P1 = _GPSTrans.DecObs.Obs[ii].p1_pseudo_range; 89 obs->P2 = _GPSTrans.DecObs.Obs[ii].p2_pseudo_range; 90 obs->L1 = _GPSTrans.DecObs.Obs[ii].p1_phase; 91 obs->L2 = _GPSTrans.DecObs.Obs[ii].p2_phase; 92 obs->SNR1 = (short) _GPSTrans.DecObs.Obs[ii].l1_sn * 10; 93 obs->SNR2 = (short) _GPSTrans.DecObs.Obs[ii].l2_sn * 10; 94 //// obs->pCodeIndicator = 95 //// obs->cumuLossOfCont = 96 97 m_lObsList.push_back(obs); 77 98 } 78 99 }
Note:
See TracChangeset
for help on using the changeset viewer.