- Timestamp:
- Nov 25, 2009, 2:41:46 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bnseph.cpp
r2014 r2015 192 192 //////////////////////////////////////////////////////////////////////////// 193 193 t_ephGPS::t_ephGPS(const gpsephemeris& eph) { 194 194 _prn = QString("G%1").arg(eph.satellite, 2, 10, QChar('0')); 195 _GPSweek = eph.GPSweek; 196 _GPSweeks = eph.TOC; 197 _TOW = eph.TOW; 198 _TOC = eph.TOC; 199 _TOE = eph.TOE; 200 _IODE = eph.IODE; 201 _IODC = eph.IODC; 202 _clock_bias = eph.clock_bias; 203 _clock_drift = eph.clock_drift; 204 _clock_driftrate = eph.clock_driftrate; 205 _Crs = eph.Crs; 206 _Delta_n = eph.Delta_n; 207 _M0 = eph.M0; 208 _Cuc = eph.Cuc; 209 _e = eph.e; 210 _Cus = eph.Cus; 211 _sqrt_A = eph.sqrt_A; 212 _Cic = eph.Cic; 213 _OMEGA0 = eph.OMEGA0; 214 _Cis = eph.Cis; 215 _i0 = eph.i0; 216 _Crc = eph.Crc; 217 _omega = eph.omega; 218 _OMEGADOT = eph.OMEGADOT; 219 _IDOT = eph.IDOT; 220 _TGD = eph.TGD; 221 _health = eph.SVhealth; 222 _ura = 0.0; 223 _L2PFlag = 0.0; 224 _L2Codes = 0.0; 195 225 } 196 226 … … 490 520 //////////////////////////////////////////////////////////////////////////// 491 521 t_ephGlo::t_ephGlo(const glonassephemeris& eph) { 492 522 _prn = QString("R%1").arg(eph.almanac_number, 2, 10, QChar('0')); 523 _GPSweek = eph.GPSWeek; 524 _GPSweeks = eph.GPSTOW; 525 _gps_utc = 0; 526 _E = eph.E; 527 _tau = eph.tau; 528 _gamma = eph.gamma; 529 _x_pos = eph.x_pos; 530 _x_velocity = eph.x_velocity; 531 _x_acceleration = eph.x_acceleration; 532 _y_pos = eph.y_pos; 533 _y_velocity = eph.y_velocity; 534 _y_acceleration = eph.y_acceleration; 535 _z_pos = eph.z_pos; 536 _z_velocity = eph.z_velocity; 537 _z_acceleration = eph.z_acceleration; 538 _health = 0; 539 _frequency_number = eph.frequency_number; 540 _tki = eph.tk; 541 542 // Initialize status vector 543 // ------------------------ 544 _tt = _GPSweeks; 545 _xv(1) = _x_pos * 1.e3; 546 _xv(2) = _y_pos * 1.e3; 547 _xv(3) = _z_pos * 1.e3; 548 _xv(4) = _x_velocity * 1.e3; 549 _xv(5) = _y_velocity * 1.e3; 550 _xv(6) = _z_velocity * 1.e3; 493 551 } 494 552
Note:
See TracChangeset
for help on using the changeset viewer.