- Timestamp:
- Apr 4, 2019, 10:08:16 AM (6 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncephuser.cpp
r8614 r8659 152 152 153 153 const t_eph* ephOld = ephLast(prn); 154 155 if (ephOld && 156 (ephOld->checkState() == t_eph::bad || 157 ephOld->checkState() == t_eph::outdated)) { 158 ephOld = 0; 159 } 154 160 155 161 if ((ephOld == 0 || newEph->isNewerThan(ephOld)) && … … 220 226 return; 221 227 } 222 else if (eph->type() == t_eph::GLONASS && timeDiff > 1* 3600) { // updated every 30 minutes228 else if (eph->type() == t_eph::GLONASS && timeDiff > 2 * 3600) { // updated every 30 minutes 223 229 eph->setCheckState(t_eph::outdated); 224 230 return; … … 266 272 return; 267 273 } 268 else if (eph->type() == t_eph::GLONASS && dt > 1*3600) {274 else if (eph->type() == t_eph::GLONASS && dt > 2*3600) { 269 275 ephL->setCheckState(t_eph::outdated); 270 276 return; -
trunk/BNC/src/bncrinex.cpp
r8644 r8659 170 170 } 171 171 if (!sklDir.isEmpty() && sklDir != "none") { 172 QString mtp; 173 if (_rnxV3) { 174 mtp = _mountPoint.path().mid(1,9).toUpper() + ".skl"; 175 } 176 else { 177 mtp = _mountPoint.path().mid(1,4).toLower() + ".skl"; 178 } 179 QUrl url(sklDir + "/" + mtp); 172 QString staID; 173 int stIdLength = _mountPoint.path().length()-2; 174 staID = _mountPoint.path().mid(1,stIdLength).toUpper() + ".skl"; 175 QUrl url(sklDir + staID); 180 176 if (url.port() == -1) { 181 177 if (sklDir.contains("https", Qt::CaseInsensitive)) { … … 335 331 336 332 int statIDlength = _statID.size() -1; 337 QString ID; 338 if (_rnxV3) { 339 ID = _statID.left(9); 340 } 341 else { 342 ID = _statID.left(4); 343 } 333 QString ID = _statID.left(statIDlength); 344 334 ID = ID.toUpper(); 345 335 -
trunk/BNC/src/rinex/rnxobsfile.cpp
r8642 r8659 96 96 } 97 97 else if (key == "MARKER NAME") { 98 if (_version < 3.0) { 99 _markerName = line.mid(0,4).trimmed(); 100 } 101 else { 102 _markerName = line.mid(0,9).trimmed(); 103 } 98 _markerName = value; 104 99 } 105 100 else if (key == "MARKER TYPE") { … … 613 608 *stream << itCmnt.next().trimmed().left(60).leftJustified(60) << "COMMENT\n"; 614 609 } 615 610 QString markerName = _markerName.left(9); 611 if (_version < 3.0) { 612 markerName = _markerName.left(4); 613 } 616 614 *stream << QString("%1") 617 .arg( _markerName, -60)615 .arg(markerName, -60) 618 616 .leftJustified(60) 619 617 << "MARKER NAME\n"; 618 620 619 621 620 if (!_markerNumber.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.