Changeset 8823 in ntrip


Ignore:
Timestamp:
Oct 1, 2019, 3:13:40 PM (2 weeks ago)
Author:
stuerze
Message:

minor changes in PPP NMEA output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/pppRun.cpp

    r8793 r8823  
    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') {
     
    691688  }
    692689
     690
    693691  QString nmStr(out.str().c_str());
    694692  unsigned char XOR = 0;
Note: See TracChangeset for help on using the changeset viewer.