Changeset 8824 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Oct 1, 2019, 3:14:34 PM (5 years ago)
Author:
stuerze
Message:

minor changes in PPP NMEA output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/pppRun.cpp

    r8794 r8824  
    662662
    663663  if      (strType == 'R') {
    664     string datestr = output._epoTime.datestr(0); // yyyymmdd
     664    string datestr = (output._epoTime - gps_utc).datestr(0); // yyyymmdd
    665665    out << "GPRMC,"
    666666        << (output._epoTime - gps_utc).timestr(3,0) << ",A,"
    667667        << setw(2) << setfill('0') << int(phiDeg)
    668         << setw(6) << setprecision(3) << setfill('0')
    669         << fmod(60*phiDeg,60) << ',' << phiCh << ','
     668        << setw(7) << setprecision(4) << setfill('0') << fmod(60*phiDeg,60) << ',' << phiCh << ','
    670669        << setw(3) << setfill('0') << int(lamDeg)
    671         << setw(6) << setprecision(3) << setfill('0')
    672         << fmod(60*lamDeg,60) << ',' << lamCh << ",,,"
    673         << datestr[6] << datestr[7] << datestr[4] << datestr[5]
    674         << datestr[2] << datestr[3] << ",,";
     670        << setw(7) << setprecision(4) << setfill('0') << fmod(60*lamDeg,60) << ',' << lamCh << ",,,"
     671        << datestr[6] << datestr[7] << datestr[4] << datestr[5] << datestr[2] << datestr[3] << ",,";
    675672  }
    676673  else if (strType == 'G') {
Note: See TracChangeset for help on using the changeset viewer.