Changeset 9889 in ntrip for trunk/BNC/src/bncsinextro.cpp
- Timestamp:
- Nov 22, 2022, 1:49:32 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncsinextro.cpp
r9424 r9889 31 31 : bncoutf(sklFileName, intr, sampl) { 32 32 33 _opt 33 _opt = opt; 34 34 _sampl = sampl; 35 35 … … 81 81 QString epo = QString("%1").arg(numEpochs, 5, 10, QLatin1Char('0')); 82 82 QString ac = QString("%1").arg(settings.value("PPP/snxtroAc").toString(),3,QLatin1Char(' ')); 83 QString sol = QString("%1").arg(settings.value("PPP/snxtroSol").toString(),4,QLatin1Char(' ')); 84 QString corr = settings.value("PPP/corrMount").toString(); 83 QString sol = QString(" %1").arg(settings.value("PPP/snxtroSol").toString(),1,QLatin1Char(' ')); 84 QString corr = ""; 85 if (settings.value("PPP/dataSource").toString() == "Real-Time Streams") { 86 corr = settings.value("PPP/corrMount").toString(); 87 } 88 else if (settings.value("PPP/dataSource").toString() == "RINEX Files") { 89 corr = settings.value("PPP/corrFile").toString(); 90 } 91 92 QString signalPriorities = QString::fromStdString(_opt->_signalPriorities); 93 if (!signalPriorities.size()) { 94 signalPriorities = "G:12&CWPSLX R:12&CP E:1&CBX E:5&QIX C:26&IQX"; 95 } 96 QStringList priorList = signalPriorities.split(" ", QString::SkipEmptyParts); 97 QStringList frqStrList; 98 for (unsigned iFreq = 1; iFreq < t_frequency::max; iFreq++) { 99 t_frequency::type frqType = static_cast<t_frequency::type>(iFreq); 100 char frqSys = t_frequency::toString(frqType)[0]; 101 char frqNum = t_frequency::toString(frqType)[1]; 102 QStringList hlp; 103 for (int ii = 0; ii < priorList.size(); ii++) { 104 if (priorList[ii].indexOf(":") != -1) { 105 hlp = priorList[ii].split(":", QString::SkipEmptyParts); 106 if (hlp.size() == 2 && hlp[0].length() == 1 && hlp[0][0] == frqSys) { 107 hlp = hlp[1].split("&", QString::SkipEmptyParts); 108 } 109 if (hlp.size() == 2 && hlp[0].indexOf(frqNum) != -1) { 110 frqStrList.append(QString("%1%2").arg(frqSys).arg(frqNum)); 111 } 112 } 113 } 114 } 85 115 86 116 _out << "%=TRO 2.00 " << ac.toStdString() << " " … … 93 123 _out << " OUTPUT " << "Total Troposphere Zenith Path Delay Product" << endl; 94 124 _out << " SOFTWARE " << BNCPGMNAME << endl; 95 _out << " INPUT " << " Ntrip streams, additional Orbit and Clock information from "96 << corr.toStdString() <<endl;125 _out << " INPUT " << "Observations_: " << _opt->_roverName.substr(0,9) 126 << ", SSR corrections: " << corr.toStdString() << endl; 97 127 _out << "-FILE/REFERENCE" << endl << endl; 98 128 … … 114 144 } 115 145 _out << "+SITE/ID" << endl; 116 _out << "*CODE PT DOMES____ T _STATION DESCRIPTION__ APPROX_LON_ APPROX_LAT_ _APP_H_" << endl;117 _out << " " << _opt->_roverName.substr(0, 4) << " A P "146 _out << "*CODE PT DOMES____ T _STATION DESCRIPTION__ APPROX_LON_ APPROX_LAT_ _APP_H_" << endl; 147 _out << " " << _opt->_roverName.substr(0,9) << " A P " 118 148 << country.toStdString() << " " 119 149 << QString(" %1").arg(lonD, 3, 10, QLatin1Char(' ')).toStdString() … … 129 159 if (!_opt->_recNameRover.empty()) { 130 160 _out << "+SITE/RECEIVER" << endl; 131 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__ FIRMWARE___" << endl;132 _out << " " << _opt->_roverName.substr(0, 4) << " A " << sol.toStdString() << " P "161 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__ FIRMWARE___" << endl; 162 _out << " " << _opt->_roverName.substr(0,9) << " A " << sol.toStdString() << " P " 133 163 << startTime.toStdString() << " " << endTime.toStdString() 134 164 << QString(" %1").arg(_opt->_recNameRover.c_str(), 20,QLatin1Char(' ')).toStdString() … … 138 168 139 169 _out << "+SITE/ANTENNA" << endl; 140 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__" << endl;141 _out << " " << _opt->_roverName.substr(0, 4) << " A " << sol.toStdString() << " P "170 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ DESCRIPTION_________ S/N__" << endl; 171 _out << " " << _opt->_roverName.substr(0,9) << " A " << sol.toStdString() << " P " 142 172 << startTime.toStdString() << " " << endTime.toStdString() << " " 143 173 << _opt->_antNameRover << " -----" << endl; … … 151 181 _out << "*DESCRIPTION_________ S/N__ L1->ARP(m)__________ L2->ARP(m)__________ AZ_EL____" << endl; 152 182 _out << QString(" %1").arg(_opt->_antNameRover.c_str(), 20,QLatin1Char(' ')).toStdString() 153 << " -----" 154 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::G1).toStdString() 155 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::G2).toStdString() 156 << " ---------" 157 << endl; 183 << " -----"; 184 for (int i = 0; i < frqStrList.size(); ++i) { 185 if (frqStrList.at(i).contains('G')) {//cout << frqStrList.at(i).toStdString() << endl; 186 _out << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::toInt(frqStrList.at(i).toStdString())).toStdString(); 187 } 188 } 189 _out << " ---------" << endl; 158 190 _out << "-SITE/GPS_PHASE_CENTER" << endl << endl; 159 191 } … … 163 195 _out << "*DESCRIPTION_________ S/N__ L1->ARP(m)__________ L2->ARP(m)__________ AZ_EL____" << endl; 164 196 _out << QString(" %1").arg(_opt->_antNameRover.c_str(), 20,QLatin1Char(' ')).toStdString() 165 << " -----" 166 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::R1).toStdString() 167 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::R2).toStdString() 168 << " ---------" 169 << endl; 197 << " -----"; 198 for (int i = 0; i < frqStrList.size(); ++i) { 199 if (frqStrList.at(i).contains('R')) {//cout << frqStrList.at(i).toStdString() << endl; 200 _out << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::toInt(frqStrList.at(i).toStdString())).toStdString(); 201 } 202 } 203 _out << " ---------" << endl; 170 204 _out << "-SITE/GLONASS_PHASE_CENTER" << endl << endl; 171 205 } … … 175 209 _out << "*DESCRIPTION_________ S/N__ L1->ARP(m)__________ L2->ARP(m)__________ AZ_EL____" << endl; 176 210 _out << QString(" %1").arg(_opt->_antNameRover.c_str(), 20,QLatin1Char(' ')).toStdString() 177 << " -----" 178 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::E1).toStdString() 179 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::E5).toStdString() 180 << endl; 211 << " -----"; 212 for (int i = 0; i < frqStrList.size(); ++i) { 213 if (frqStrList.at(i).contains('E')) {//cout << frqStrList.at(i).toStdString() << endl; 214 _out << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::toInt(frqStrList.at(i).toStdString())).toStdString(); 215 } 216 } 217 _out << " ---------" << endl; 181 218 _out << "-SITE/GALILEO_PHASE_CENTER" << endl << endl; 182 219 } … … 186 223 _out << "*DESCRIPTION_________ S/N__ L1->ARP(m)__________ L2->ARP(m)__________ AZ_EL____" << endl; 187 224 _out << QString(" %1").arg(_opt->_antNameRover.c_str(), 20,QLatin1Char(' ')).toStdString() 188 << " -----" 189 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::C2).toStdString() 190 << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::C6).toStdString() 191 << endl; 225 << " -----"; 226 for (int i = 0; i < frqStrList.size(); ++i) { 227 if (frqStrList.at(i).contains('C')) {//cout << frqStrList.at(i).toStdString() << endl; 228 _out << _antex->pcoSinexString(_opt->_antNameRover, t_frequency::toInt(frqStrList.at(i).toStdString())).toStdString(); 229 } 230 } 231 _out << " ---------" << endl; 192 232 _out << "-SITE/BEIDOU_PHASE_CENTER" << endl << endl; 193 233 } … … 198 238 _out << "+SITE/ECCENTRICITY" << endl; 199 239 _out << "* UP______ NORTH___ EAST____" << endl; 200 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ AXE ARP->BENCHMARK(M)_________" << endl;201 _out << " " << _opt->_roverName.substr(0, 4) << " A " << sol.toStdString() << " P "240 _out << "*SITE PT SOLN T DATA_START__ DATA_END____ AXE ARP->BENCHMARK(M)_________" << endl; 241 _out << " " << _opt->_roverName.substr(0,9) << " A " << sol.toStdString() << " P " 202 242 << startTime.toStdString() << " " << endTime.toStdString() << " UNE" 203 243 << QString("%1").arg(_opt->_neuEccRover(3), 9, 'f', 4, QLatin1Char(' ')).toStdString() … … 207 247 208 248 _out << "+TROP/COORDINATES" << endl; 209 _out << "*SITE PT SOLN T STA_X_______ STA_Y_______ STA_Z_______ SYSTEM REMARK" << endl;210 _out << " " << _opt->_roverName.substr(0, 4) << " A " << sol.toStdString() << " P"249 _out << "*SITE PT SOLN T STA_X_______ STA_Y_______ STA_Z_______ SYSTEM REMARK" << endl; 250 _out << " " << _opt->_roverName.substr(0,9) << " A " << sol.toStdString() << " P" 211 251 << QString(" %1").arg(_opt->_xyzAprRover(1), 12, 'f', 3, QLatin1Char(' ')).toStdString() 212 252 << QString(" %1").arg(_opt->_xyzAprRover(2), 12, 'f', 3, QLatin1Char(' ')).toStdString() 213 253 << QString(" %1").arg(_opt->_xyzAprRover(3), 12, 'f', 3, QLatin1Char(' ')).toStdString() 214 << " I TRF14" << ac.toStdString() << endl;254 << " IGS20 " << ac.toStdString() << endl; 215 255 _out << "-TROP/COORDINATES"<< endl << endl; 216 256 … … 228 268 229 269 _out << "+TROP/SOLUTION" << endl; 230 _out << "*SITE EPOCH_______ TROTOT STDEV" << endl;270 _out << "*SITE EPOCH_______ TROTOT STDEV" << endl; 231 271 } 232 272 … … 246 286 if ((reopen(GPSWeek, GPSWeeks) == success) && 247 287 (fmod(daysec, double(_sampl)) == 0.0)) { 248 _out << ' ' << staID.left( 4).data() << ' ' << time.toStdString() << ' '288 _out << ' ' << staID.left(9).data() << ' ' << time.toStdString() << ' ' 249 289 << noshowpos << setw(6) << setprecision(1) << trotot * 1000.0 250 290 << noshowpos << setw(6) << setprecision(1) << stdev * 1000.0 << endl;
Note:
See TracChangeset
for help on using the changeset viewer.