Changeset 2563 in ntrip


Ignore:
Timestamp:
Aug 11, 2010, 10:24:30 AM (14 years ago)
Author:
weber
Message:

Modify NMEA GPRMC output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r2548 r2563  
    213213    _nmeaStream = new QTextStream();
    214214    _nmeaStream->setDevice(_nmeaFile);
    215     QDateTime dateTime = QDateTime::currentDateTime().toUTC();
    216     QString nmStr = "GPRMC," + dateTime.time().toString("hhmmss")
    217                   + ",A,,,,,,,"
    218                   + dateTime.date().toString("ddMMyy")
    219                   + ",,";
    220                    
    221     writeNMEAstr(nmStr);
    222215  }
    223216}
     
    775768  char lamCh = 'E';
    776769  if (lamDeg < 0) {
    777 //  lamDeg = -lamDeg;      // GW, reason: RTKPlot cant handle 'W'
    778 //  lamCh  =  'W';         // GW, reason: RTKPlot cant handle 'W'
    779     lamDeg = 360. +lamDeg; // GW, reason: RTKPlot cant handle 'W'
     770    lamDeg = -lamDeg;
     771    lamCh  =  'W';
    780772  }   
    781773
     
    798790  writeNMEAstr(QString(str3.str().c_str()));
    799791
     792  QDateTime dateTime = QDateTime::currentDateTime().toUTC();
     793  QString nmStr = "GPRMC," + dateTime.time().toString("hhmmss")
     794                + ",A,0.00,S,0.00,E,0.00,0.00,"
     795                + dateTime.date().toString("ddMMyy")
     796                + ",,";
     797  writeNMEAstr(nmStr);
     798
    800799  return success;
    801800}
Note: See TracChangeset for help on using the changeset viewer.