Changeset 4013 in ntrip
- Timestamp:
- Apr 22, 2012, 2:19:43 PM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/ephemeris.cpp
r3765 r4013 1043 1043 _ok = false; 1044 1044 } 1045 1046 // RINEX Format String 1047 ////////////////////////////////////////////////////////////////////////////// 1048 QString t_ephGlo::toString(double /* version */) const { 1049 return ""; 1050 } 1051 1052 // RINEX Format String 1053 ////////////////////////////////////////////////////////////////////////////// 1054 QString t_ephGal::toString(double /* version */) const { 1055 return ""; 1056 } 1057 1058 // RINEX Format String 1059 ////////////////////////////////////////////////////////////////////////////// 1060 QString t_ephGPS::toString(double version) const { 1061 1062 QString rnxStr; 1063 1064 bncTime tt(_GPSweek, _GPSweeks); 1065 unsigned year, month, day, hour, min; 1066 double sec; 1067 tt.civil_date(year, month, day); 1068 tt.civil_time(hour, min, sec); 1069 1070 QTextStream out(&rnxStr); 1071 1072 if (version < 3.0) { 1073 out << _prn << QString(" %1 %2 %3 %4 %5 %6") 1074 .arg(year % 100, 2, 10, QChar('0')) 1075 .arg(month, 2) 1076 .arg(day, 2) 1077 .arg(hour, 2) 1078 .arg(min, 2) 1079 .arg(int(sec), 2); 1080 } 1081 else { 1082 out << _prn << QString(" %1 %2 %3 %4 %5 %6") 1083 .arg(year, 4) 1084 .arg(month, 2, 10, QChar('0')) 1085 .arg(day, 2, 10, QChar('0')) 1086 .arg(hour, 2, 10, QChar('0')) 1087 .arg(min, 2, 10, QChar('0')) 1088 .arg(int(sec), 2, 10, QChar('0')); 1089 } 1090 1091 out << QString("%1%2%3\n") 1092 .arg(_clock_bias, 19, 'e', 12) 1093 .arg(_clock_drift, 19, 'e', 12) 1094 .arg(_clock_driftrate, 19, 'e', 12); 1095 1096 out << QString(" %1%2%3%4\n") 1097 .arg(_IODE, 19, 'e', 12) 1098 .arg(_Crs, 19, 'e', 12) 1099 .arg(_Delta_n, 19, 'e', 12) 1100 .arg(_M0, 19, 'e', 12); 1101 1102 out << QString(" %1%2%3%4\n") 1103 .arg(_Cuc, 19, 'e', 12) 1104 .arg(_e, 19, 'e', 12) 1105 .arg(_Cus, 19, 'e', 12) 1106 .arg(_sqrt_A, 19, 'e', 12); 1107 1108 out << QString(" %1%2%3%4\n") 1109 .arg(_TOE, 19, 'e', 12) 1110 .arg(_Cic, 19, 'e', 12) 1111 .arg(_OMEGA0, 19, 'e', 12) 1112 .arg(_Cis, 19, 'e', 12); 1113 1114 out << QString(" %1%2%3%4\n") 1115 .arg(_i0, 19, 'e', 12) 1116 .arg(_Crc, 19, 'e', 12) 1117 .arg(_omega, 19, 'e', 12) 1118 .arg(_OMEGADOT, 19, 'e', 12); 1119 1120 out << QString(" %1%2%3%4\n") 1121 .arg(_IDOT, 19, 'e', 12) 1122 .arg(0.0, 19, 'e', 12) 1123 .arg(0.0, 19, 'e', 12) 1124 .arg(0.0, 19, 'e', 12); 1125 1126 out << QString(" %1%2%3%4\n") 1127 .arg(0.0, 19, 'e', 12) 1128 .arg(_health, 19, 'e', 12) 1129 .arg(_TGD, 19, 'e', 12) 1130 .arg(_IODC, 19, 'e', 12); 1131 1132 out << QString(" %1%2\n") 1133 .arg(0.0,19, 'e', 12) 1134 .arg(0.0,19, 'e', 12); 1135 1136 return rnxStr; 1137 } -
trunk/BNC/RTCM3/ephemeris.h
r4005 r4013 32 32 virtual e_type type() const = 0; 33 33 34 virtual QString toString(double version) const = 0; 35 34 36 bool ok() const {return _ok;} 35 37 bool isNewerThan(const t_eph* eph) const; … … 79 81 80 82 virtual e_type type() const {return t_eph::GPS;} 83 84 virtual QString toString(double version) const; 81 85 82 86 double TOC() const {return _TOC;} … … 134 138 135 139 virtual e_type type() const {return t_eph::GLONASS;} 140 141 virtual QString toString(double version) const; 136 142 137 143 virtual void position(int GPSweek, double GPSweeks, … … 177 183 t_ephGal(float rnxVersion, const QStringList& lines); 178 184 virtual ~t_ephGal() {} 185 186 virtual QString toString(double version) const; 179 187 180 188 virtual e_type type() const {return t_eph::Galileo;} -
trunk/BNC/rinex/reqcedit.cpp
r4010 r4013 100 100 //////////////////////////////////////////////////////////////////////////// 101 101 void t_reqcEdit::editObservations() { 102 103 // Easy Exit 104 // --------- 105 if (_obsFileNames.isEmpty() || _outObsFileName.isEmpty()) { 106 return; 107 } 102 108 103 109 // Initialize input observation files, sort them according to start time … … 230 236 void t_reqcEdit::editEphemerides() { 231 237 238 // Easy Exit 239 // --------- 240 if (_navFileNames.isEmpty() || _outNavFileName.isEmpty()) { 241 return; 242 } 243 232 244 // Read All Ephemerides 233 245 // -------------------- -
trunk/BNC/rinex/rnxnavfile.cpp
r4012 r4013 271 271 //////////////////////////////////////////////////////////////////////////// 272 272 void t_rnxNavFile::writeEph(const t_eph* eph) { 273 if (version() < 3.0) { 274 writeEphV2(eph); 275 } 276 else { 277 writeEphV3(eph); 278 } 279 } 280 281 // 282 //////////////////////////////////////////////////////////////////////////// 283 void t_rnxNavFile::writeEphV2(const t_eph* eph) { 284 } 285 286 // 287 //////////////////////////////////////////////////////////////////////////// 288 void t_rnxNavFile::writeEphV3(const t_eph* eph) { 289 290 bncTime tt(eph->GPSweek(), eph->GPSweeks()); 291 292 unsigned year, month, day, hour, min; 293 double sec; 294 tt.civil_date(year, month, day); 295 tt.civil_time(hour, min, sec); 296 297 QString dateStr; 298 QTextStream(&dateStr) << QString(" %1 %2 %3 %4 %5 %6") 299 .arg(year, 4) 300 .arg(month, 2, 10, QChar('0')) 301 .arg(day, 2, 10, QChar('0')) 302 .arg(hour, 2, 10, QChar('0')) 303 .arg(min, 2, 10, QChar('0')) 304 .arg(int(sec), 2, 10, QChar('0')); 305 306 *_stream << eph->prn() << dateStr << endl; 307 } 273 *_stream << eph->toString(version()); 274 } -
trunk/BNC/rinex/rnxnavfile.h
r4011 r4013 69 69 private: 70 70 void read(QTextStream* stream); 71 void writeEphV2(const t_eph* eph);72 void writeEphV3(const t_eph* eph);73 71 74 72 e_inpOut _inpOut;
Note:
See TracChangeset
for help on using the changeset viewer.