Changeset 5484 in ntrip


Ignore:
Timestamp:
Sep 18, 2013, 2:44:20 PM (11 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GnssCenter/monitor/thriftclient.cpp

    r5483 r5484  
    8484    const SatelliteXYZ& sat = svXYZList[ii];
    8585    t_thriftSatellite* satellite = new t_thriftSatellite;
    86     satellite->_x = sat.xyz.x;
    87     satellite->_y = sat.xyz.y;
    88     satellite->_z = sat.xyz.z;
    8986    char ch;
    9087    switch(sat.constellation) {
     
    9693      case (ConstellationType::COMPASS): ch = 'C'; break;
    9794    }
    98     cout << unsigned(sat.ID) << endl;
     95    char prn[3];
     96    sprintf(prn, "%c%2d", ch, sat.ID);
     97    satellite->_prn = prn;
     98    satellite->_x   = sat.xyz.x;
     99    satellite->_y   = sat.xyz.y;
     100    satellite->_z   = sat.xyz.z;
    99101  }
    100102}
Note: See TracChangeset for help on using the changeset viewer.