- Timestamp:
- Dec 21, 2006, 3:38:51 PM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM/RTCM2.cpp
r354 r356 880 880 t = 0.6*P.modZCount() 881 881 + P.getUnsignedBits(4,20)*1.0e-6; 882 t = floor(t*1000.+0.5)/1000.; //weber 882 883 883 884 // Frequency (exit if neither L1 nor L2) … … 969 970 t = 0.6*P.modZCount() 970 971 + P.getUnsignedBits(4,20)*1.0e-6; 972 t = floor(t*1000.+0.5)/1000.; //weber 971 973 972 974 // Frequency (exit if neither L1 nor L2) -
trunk/BNC/bncgetthread.cpp
r354 r356 45 45 #include <QTextStream> 46 46 #include <QtNetwork> 47 #include <QTime> 47 48 48 49 #include "bncgetthread.h" … … 92 93 _staID = _staID.left(_staID.length()-1) + QString("%1").arg(num).toAscii(); 93 94 } 94 // Start Ergaenzung Perlt95 95 msleep(100); //sleep 0.1 sec 96 //Ende Ergaenzung Perlt97 96 } 98 97 … … 154 153 userAndPwd.toBase64() + "\r\n\r\n"; 155 154 } 155 156 ////////////////////////////////////////////////////////////////// 157 // Additional NMEA String in request to handle VRS data streams // 158 // will be ignored from standard casters // 159 ////////////////////////////////////////////////////////////////// 160 161 double lat, lon; 162 lat = settings.value("approxLat", 0).toDouble(); 163 lon = settings.value("approxLon", 0).toDouble(); 164 if ((lat != 0.0) && (lon != 0.0)) { 165 const char* flagN="N"; 166 const char* flagE="E"; 167 if (lon >180.) {lon=(lon-360.)*(-1.); flagE="W";} 168 if ((lon < 0.) && (lon >= -180.)) {lon=lon*(-1.); flagE="W";} 169 if (lon < -180.) {lon=(lon+360.); flagE="E";} 170 if (lat < 0.) {lat=lat*(-1.); flagN="S";} 171 QTime ttime(QTime::currentTime()); 172 int lat_deg = (int)lat; 173 double lat_min=(lat-lat_deg)*60.; 174 int lon_deg = (int)lon; 175 double lon_min=(lon-lon_deg)*60.; 176 int hh = 0 , mm = 0; 177 double ss = 0.0; 178 hh=ttime.hour(); 179 mm=ttime.minute(); 180 ss=(double)ttime.second()+0.001*ttime.msec(); 181 QString gga; 182 gga += "GPGGA,"; 183 gga += QString("%1%2%3,").arg((int)hh, 2, 10, QLatin1Char('0')).arg((int)mm, 2, 10, QLatin1Char('0')).arg((int)ss, 2, 10, QLatin1Char('0')); 184 gga += QString("%1%2,").arg((int)lat_deg,2, 10, QLatin1Char('0')).arg(lat_min, 7, 'f', 4, QLatin1Char('0')); 185 gga += flagN; 186 gga += QString(",%1%2,").arg((int)lon_deg,3, 10, QLatin1Char('0')).arg(lon_min, 7, 'f', 4, QLatin1Char('0')); 187 gga += flagE + QString(",1,05,1.00,+00100,M,10.000,M,,"); 188 int xori; 189 char XOR = 0; 190 char *Buff =gga.toAscii().data(); 191 int iLen = strlen(Buff); 192 for (xori = 0; xori < iLen; xori++) { 193 XOR ^= (char)Buff[xori]; 194 } 195 gga += QString("*%1").arg(XOR, 2, 16, QLatin1Char('0')); 196 reqStr += "$"; 197 reqStr += gga; 198 reqStr += "\r\n"; 199 } 200 //////////////////////////////////////////////////////////////// 156 201 157 202 msg += reqStr; -
trunk/BNC/bncmain.cpp
r319 r356 126 126 127 127 getThread->start(); 128 //Start Ergaenzung Perlt129 //#ifndef WIN32130 // usleep(100000); // sleep 0.1 sec131 //#endif132 // verschoben nach bncgetthread.cpp133 //Ende Ergaenzung Perlt134 128 } 135 129 if (_global_caster->numStations() == 0) { -
trunk/BNC/bncrinex.cpp
r355 r356 73 73 74 74 _pgmName = ((bncApp*)qApp)->bncVersion().leftJustified(20, ' ', true); 75 // Start Ergaenzung Perlt76 75 #ifdef WIN32 77 76 _userName = QString("${USERNAME}"); … … 79 78 _userName = QString("${USER}"); 80 79 #endif 81 //Ende Ergaenzung Perlt82 80 expandEnvVar(_userName); 83 81 _userName = _userName.leftJustified(20, ' ', true); … … 295 293 const QDateTime& datTimNom) { 296 294 295 QSettings settings; 296 // double lat, lon; 297 // int vrsstream = 0; 298 // lat = settings.value("approxLat", 0).toDouble(); 299 // lon = settings.value("approxLon", 0).toDouble(); 300 // if ((lat != 0.0) && (lon != 0.0)) {vrsstream=1;} 301 297 302 // Open the Output File 298 303 // -------------------- … … 302 307 // ---------------------------------- 303 308 if ( QFile::exists(_fName) ) { 304 QSettings settings;309 // QSettings settings; 305 310 if ( Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked) { 306 311 _out.open(_fName.data(), ios::app); … … 337 342 _mountPoint.path())).leftJustified(60, ' ', true); 338 343 _out << hlp.toAscii().data() << "COMMENT" << endl; 344 // hlp = QString("Approx VRS Position %1%2").arg(lat, -20, 'f', 4).arg(lon, -20, 'f', 4); 345 // _out << hlp.toAscii().data() << "COMMENT" << endl; 339 346 } 340 347 else { … … 380 387 _mountPoint.path())).leftJustified(60, ' ', true); 381 388 _out << hlp.toAscii().data() << "COMMENT" << endl; 389 // hlp = QString("Approx VRS Position %1%2").arg(lat, -20, 'f', 4).arg(lon, -20, 'f', 4); 390 // _out << hlp.toAscii().data() << "COMMENT" << endl; 382 391 _out << " END OF HEADER" << endl; 383 392 } -
trunk/BNC/bncwindow.cpp
r354 r356 163 163 _rnxSamplSpinBox->setSuffix(" sec"); 164 164 _logFileLineEdit = new QLineEdit(settings.value("logFile").toString()); 165 _LatLineEdit = new QLineEdit(settings.value("approxLat").toString()); 166 _LatLineEdit->setMaximumWidth(9*ww); 167 _LonLineEdit = new QLineEdit(settings.value("approxLon").toString()); 168 _LonLineEdit->setMaximumWidth(9*ww); 165 169 _mountPointsTable = new QTableWidget(0,4); 166 170 _mountPointsTable->horizontalHeader()->resizeSection(1,25*ww); … … 248 252 249 253 layout->addWidget(new QLabel("Mountpoints"), 8, 0, 1, 2); 254 255 layout->addWidget(new QLabel(tr("Approx. Lat./Lon.")), 8, 2); 256 layout->addWidget(_LatLineEdit, 8, 3); 257 layout->addWidget(_LonLineEdit, 8, 4); 258 250 259 layout->addWidget(_mountPointsTable, 9, 0, 1, 5); 251 260 … … 368 377 settings.setValue("rnxAppend", _rnxAppendCheckBox->checkState()); 369 378 settings.setValue("logFile", _logFileLineEdit->text()); 370 371 QStringList mountPoints; 379 settings.setValue("approxLat", _LatLineEdit->text()); 380 settings.setValue("approxLon", _LonLineEdit->text()); 381 382 QStringList mountPoints; 372 383 373 384 for (int iRow = 0; iRow < _mountPointsTable->rowCount(); iRow++) { … … 434 445 435 446 getThread->start(); 436 //Start Ergaenzung Perlt437 //#ifndef WIN32438 // usleep(100000); // sleep 0.1 sec439 //#endif440 // verschoben nach bncgetthread.cpp441 // Ende Ergaenzung Perlt442 447 } 443 448 } -
trunk/BNC/bncwindow.h
r280 r356 85 85 QTableWidget* _mountPointsTable; 86 86 87 QLineEdit* _LatLineEdit; 88 QLineEdit* _LonLineEdit; 89 87 90 QTextEdit* _log; 88 91
Note:
See TracChangeset
for help on using the changeset viewer.