Changeset 6227 in ntrip for trunk/BNC/src/bncrinex.cpp
- Timestamp:
- Oct 11, 2014, 3:41:05 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncrinex.cpp
r6226 r6227 314 314 // Write RINEX Header 315 315 //////////////////////////////////////////////////////////////////////////// 316 void bncRinex::writeHeader(const QByteArray& format, 317 const QDateTime& datTimNom) { 316 void bncRinex::writeHeader(const QByteArray& format, const bncTime& firstObsTime) { 318 317 319 318 bncSettings settings; … … 321 320 // Open the Output File 322 321 // -------------------- 322 QDateTime datTimNom = dateAndTimeFromGPSweek(firstObsTime.gpsw(), 323 floor(firstObsTime.gpssec()+0.5)); 323 324 resolveFileName(datTimNom); 324 325 … … 366 367 txtMap["COMMENT"] = _addComments.join("\\n"); 367 368 369 _header.setStartTime(firstObsTime); 368 370 _header.write(&outHlp, &txtMap); 369 371 … … 408 410 // ------------- 409 411 const t_satObs& fObs = obsList.first(); 410 QDateTime datTim = dateAndTimeFromGPSweek(fObs._time.gpsw(), fObs._time.gpssec());411 412 QDateTime datTimNom = dateAndTimeFromGPSweek(fObs._time.gpsw(), floor(fObs._time.gpssec()+0.5)); 412 413 … … 421 422 // ------------------ 422 423 if (!_headerWritten) { 423 _header.setStartTime(fObs._time); 424 writeHeader(format, datTimNom); 424 writeHeader(format, fObs._time); 425 425 } 426 426
Note:
See TracChangeset
for help on using the changeset viewer.