Changeset 7931 in ntrip
- Timestamp:
- May 30, 2016, 12:41:25 PM (9 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/pppInclude.h
r6973 r7931 35 35 double _trpStdev; 36 36 int _numSat; 37 double _ pDop;37 double _hDop; 38 38 std::string _log; 39 39 bool _error; -
branches/BNC_2.12/src/pppRun.cpp
r7856 r7931 599 599 double lamDeg = ell[1] * 180 / M_PI; 600 600 601 unsigned year, month, day; 602 output._epoTime.civil_date(year, month, day); 603 double gps_utc = gnumleap(year, month, day); 604 601 605 char phiCh = 'N'; 602 606 if (phiDeg < 0) { … … 616 620 string datestr = output._epoTime.datestr(0); // yyyymmdd 617 621 out << "GPRMC," 618 << output._epoTime.timestr(0,0) << ",A,"622 << (output._epoTime - gps_utc).timestr(3,0) << ",A," 619 623 << setw(2) << setfill('0') << int(phiDeg) 620 624 << setw(6) << setprecision(3) << setfill('0') … … 628 632 else if (strType == 'G') { 629 633 out << "GPGGA," 630 << output._epoTime.timestr(0,0) << ','634 << (output._epoTime - gps_utc).timestr(2,0) << ',' 631 635 << setw(2) << setfill('0') << int(phiDeg) 632 636 << setw(10) << setprecision(7) << setfill('0') … … 636 640 << fmod(60*lamDeg,60) << ',' << lamCh 637 641 << ",1," << setw(2) << setfill('0') << output._numSat << ',' 638 << setw(3) << setprecision(1) << output._ pDop << ','642 << setw(3) << setprecision(1) << output._hDop << ',' 639 643 << setprecision(3) << ell[2] << ",M,0.0,M,,"; 640 644 }
Note:
See TracChangeset
for help on using the changeset viewer.