- Timestamp:
- Oct 7, 2012, 10:41:59 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
r4753 r4754 263 263 // Default Update Interval 264 264 // ----------------------- 265 int clkUpdInterval = 5; 266 int ephUpdInterval = (_samplRtcmEphCorr != 0.0 ? int(_samplRtcmEphCorr) : 5); 267 268 co.UpdateInterval = clkUpdInterval; 269 bias.UpdateInterval = clkUpdInterval; 265 int clkUpdInd = 2; // 5 sec 266 int ephUpdInd = clkUpdInd; // default 267 if (_samplRtcmEphCorr == 10.0) { 268 ephUpdInd = 3; 269 } 270 else if (_samplRtcmEphCorr == 15.0) { 271 ephUpdInd = 4; 272 } 273 else if (_samplRtcmEphCorr == 30.0) { 274 ephUpdInd = 5; 275 } 276 else if (_samplRtcmEphCorr == 60.0) { 277 ephUpdInd = 6; 278 } 279 else if (_samplRtcmEphCorr == 120.0) { 280 ephUpdInd = 7; 281 } 282 else if (_samplRtcmEphCorr == 240.0) { 283 ephUpdInd = 8; 284 } 285 else if (_samplRtcmEphCorr == 300.0) { 286 ephUpdInd = 9; 287 } 288 else if (_samplRtcmEphCorr == 600.0) { 289 ephUpdInd = 10; 290 } 291 else if (_samplRtcmEphCorr == 900.0) { 292 ephUpdInd = 11; 293 } 294 295 co.UpdateInterval = clkUpdInd; 296 bias.UpdateInterval = clkUpdInd; 270 297 271 298 for (int ii = 1; ii < lines.size(); ii++) { … … 409 436 char obuffer[CLOCKORBIT_BUFFERSIZE]; 410 437 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 411 co.UpdateInterval = ephUpdIn terval;438 co.UpdateInterval = ephUpdInd; 412 439 int len1 = MakeClockOrbit(&co, COTYPE_GPSORBIT, 1, obuffer, sizeof(obuffer)); 413 co.UpdateInterval = clkUpdIn terval;440 co.UpdateInterval = clkUpdInd; 414 441 if (len1 > 0) { 415 442 hlpBufferCo += QByteArray(obuffer, len1); … … 425 452 char obuffer[CLOCKORBIT_BUFFERSIZE]; 426 453 if (fmod(epoTime.gpssec(), _samplRtcmEphCorr) == 0.0) { 427 co.UpdateInterval = ephUpdIn terval;454 co.UpdateInterval = ephUpdInd; 428 455 int len1 = MakeClockOrbit(&co, COTYPE_GLONASSORBIT, 1, obuffer, sizeof(obuffer)); 429 co.UpdateInterval = clkUpdIn terval;456 co.UpdateInterval = clkUpdInd; 430 457 if (len1 > 0) { 431 458 hlpBufferCo += QByteArray(obuffer, len1);
Note:
See TracChangeset
for help on using the changeset viewer.