Changeset 68 in ntrip for trunk/BNC/RTIGS


Ignore:
Timestamp:
Aug 25, 2006, 10:37:03 AM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC/RTIGS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTIGS/cgps_transform.h

    r57 r68  
    8787
    8888class CGPS_Transform {
     89friend class rtigs;
    8990private:
    9091  ARR_OBS_T     DecObs;
  • trunk/BNC/RTIGS/rtigs.cpp

    r67 r68  
    1919
    2020using namespace std;
     21
     22#undef L1
     23#undef L2
    2124
    2225// Constructor
     
    7174  // ----------------
    7275  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);
    7798    }
    7899  }
Note: See TracChangeset for help on using the changeset viewer.