-
Notifications
You must be signed in to change notification settings - Fork 52
/
QReadClk.cpp
572 lines (539 loc) · 19 KB
/
QReadClk.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
#include "QReadClk.h"
QReadClk::QReadClk()
{
}
QReadClk::QReadClk(QStringList ClkFileNames)
{
initVar();
if(ClkFileNames.length() == 1) IsSigalFile = true;
if (ClkFileNames.length() > 0)
{
m_ClkFileNames =ClkFileNames;
}
else
{
isReadAllData = true;
return ;
}
}
void QReadClk::setClkFileNames(QStringList ClkFileNames)
{
initVar();
if(ClkFileNames.length() == 1) IsSigalFile = true;
if (ClkFileNames.length() > 0)
{
m_ClkFileNames =ClkFileNames;
}
else
{
isReadAllData = true;
return ;
}
}
//Destructed function
QReadClk::~QReadClk(void)
{
releaseAllData();
}
void QReadClk::initVar()
{
isReadHead = false;
isReadAllData = false;
IsSigalFile = false;
m_ClkFileName = "";
lagrangeFact = 10;
//Contains only a total of 32 satellites in the GPS system
m_lastGPSTimeFlag = 0;//As a starting marker
m_lastCmpGPSTime = 999999999;//Record the GPS time of the initial calculation
m_EndHeadNum = 8;
m_WeekOrder = 0;
ACCELERATE = true;// 1:Acceleration program (time is from small to large) 0:Do not speed up the program (time chaos)
InitStruct();
}
//Initialize the matrix inside the structure to be used (with memory saving)
void QReadClk::InitStruct()
{
int maxSatlitNum = 64;
if (isInSystem('G'))
{
epochData.MatrixDataGPS.resize(maxSatlitNum,4);
epochData.MatrixDataGPS.setZero();
}
if (isInSystem('R'))
{
epochData.MatrixDataGlonass.resize(maxSatlitNum,4);
epochData.MatrixDataGlonass.setZero();
}
if (isInSystem('C'))
{
epochData.MatrixDataBDS.resize(maxSatlitNum,4);
epochData.MatrixDataBDS.setZero();
}
if (isInSystem('E'))
{
epochData.MatrixDataGalieo.resize(maxSatlitNum,4);
epochData.MatrixDataGalieo.setZero();
}
}
//Go to GPS time
double QReadClk::YMD2GPSTime(int Year,int Month,int Day,int HoursInt,int Minutes,double Seconds,int *GPSWeek)//,int *GPSTimeArray
{
double Hours = HoursInt + ((Minutes * 60) + Seconds)/3600.0;
//Get JD
double JD = 0.0;
if(Month<=2)
JD = (int)(365.25*(Year-1)) + (int)(30.6001*(Month+12+1)) + Day + Hours/24.0 + 1720981.5;
else
JD = (int)(365.25*(Year)) + (int)(30.6001*(Month+1)) + Day + Hours/24.0 + 1720981.5;
int Week = (int)((JD - 2444244.5) / 7);
int N =(int)(JD + 1.5)%7;
if (GPSWeek) *GPSWeek = Week;
return (N*24*3600 + HoursInt*3600 + Minutes*60 + Seconds);
}
//Read header file
void QReadClk::readAllHead()
{
if (isReadHead)
return ;
tempLine = m_readCLKFileClass.readLine();//Read the first line
QString flagHeadEnd = "END";
QString endHeadStr = tempLine.mid(60,20).trimmed();
while (!endHeadStr.contains(flagHeadEnd,Qt::CaseInsensitive))
{
//Read header file data......
//Skip header file here
//Read the next line
tempLine = m_readCLKFileClass.readLine();//Read the next line
endHeadStr = tempLine.mid(60,20).trimmed();
}
tempLine = m_readCLKFileClass.readLine();//Read the next line into the data area
isReadHead = true;
}
//Read all data from multiple files
void QReadClk::readFileData2Vec(QStringList ClkFileNames)
{
if (ClkFileNames.length() == 0) isReadAllData = true;
if (isReadAllData)
return;
m_allEpochData.clear();
//First read the header file to read the file from small to large according to the time
int minGPSWeek = 999999999;//Save the minimum week and reduce the int out of bounds (weeks are converted to seconds)
QVector< int > tempGPSWeek,fileFlagSeconds;//Save the file to observe the actual time
QVector< double > tempGPSSeconds;
for (int i = 0;i < ClkFileNames.length();i++)
{
int Year =0,Month = 0,Day = 0,Hours = 0,Minutes = 0,GPSWeek = 0;
double Seconds = 0,GPSSeconds = 0;
QString CLKFileName = ClkFileNames.at(i);
QFile clkfile(CLKFileName);
if (!clkfile.open(QFile::ReadOnly))
{
QString erroInfo = "Open " + CLKFileName + "faild!(QReadClk::readFileData2Vec)";
ErroTrace(erroInfo);
}
//Skip header file
do
{
tempLine = clkfile.readLine();//Read the first line
if (clkfile.atEnd())
{
ErroTrace("Can not read clk file!(QReadClk::readFileData2Vec)");
break;
}
} while (!tempLine.contains("END OF HEADER",Qt::CaseInsensitive));
//Find the time corresponding to the AS line
do
{
tempLine = clkfile.readLine();//Read the first line
if (clkfile.atEnd())
{
ErroTrace("Can not read clk file!(QReadClk::readFileData2Vec)");
break;
}
} while (!tempLine.mid(0,2).contains("AS",Qt::CaseInsensitive));
//Get Time
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,11).toDouble();
GPSSeconds = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&GPSWeek);
if (GPSWeek <= minGPSWeek)
minGPSWeek = GPSWeek;
tempGPSWeek.append(GPSWeek);
tempGPSSeconds.append(GPSSeconds);
clkfile.close();
}
//Convert to seconds
QVector< int > WeekOrder;//Save data, mark whether cross-week,Cross: 1 does not span: 0 / / read multiple files need to use
for (int i = 0;i < tempGPSWeek.length();i++)
{
double Seconds = (tempGPSWeek.at(i) - minGPSWeek)*604800 + tempGPSSeconds.at(i);
WeekOrder.append(tempGPSWeek.at(i) - minGPSWeek);
fileFlagSeconds.append(Seconds);
}
//Sort file names by time
for (int i = 0; i < fileFlagSeconds.length();i++)
{
for (int j = i+1;j < fileFlagSeconds.length();j++)
{
if (fileFlagSeconds.at(j) < fileFlagSeconds.at(i))//exchange
{
//Exchange file name
QString tempFileName = ClkFileNames.at(i);
ClkFileNames[i] = ClkFileNames.at(j);
ClkFileNames[j] = tempFileName;
//Exchange week sign
int tempWeek = WeekOrder.at(i);
WeekOrder[i] = WeekOrder.at(j);
WeekOrder[j] = tempWeek;
}
}
}
m_WeekOrder = 0;
for (int i = 0;i < WeekOrder.length();i++)
{
m_WeekOrder += WeekOrder[i];//Save cross-week mark
}
//Read all files by time
for (int i = 0;i < ClkFileNames.length();i++)
{
QString CLKFileName = ClkFileNames.at(i);
//open a file
QFile clkfile(CLKFileName);
if (!clkfile.open(QFile::ReadOnly))
{
QString erroInfo = "Open " + CLKFileName + "faild!(QReadClk::readFileData2Vec)";
ErroTrace(erroInfo);
}
//Read header file data
tempLine = clkfile.readLine();//Read the first line
QString endHeadStr = tempLine.mid(60,20).trimmed();
while (!endHeadStr.contains("END OF HEADER",Qt::CaseInsensitive))
{
//Do header file data read here skip header file
tempLine = clkfile.readLine();//Read the next line
endHeadStr = tempLine.mid(60,20).trimmed();
}
tempLine = clkfile.readLine();//Read the next line into the data area
//Read data area
//First time tempLine AR......
int Year =0,Month = 0,Day = 0,Hours = 0,Minutes = 0,Week = 0;
double Seconds = 0, temp_gps_time = 0;// debug 2018.11.15 xiaogongwei
while (!clkfile.atEnd())
{
//Skip the area that is not the beginning of the clock error
while(tempLine.mid(0,3) != "AS ")
{
tempLine = clkfile.readLine();
if(clkfile.atEnd())
break;
}
if(clkfile.atEnd()) break;
//Read an epoch error
epochData.MatrixDataGPS.setZero();//It is best to clear before use, although it increases the amount of calculation but is safe.
epochData.MatrixDataGlonass.setZero();
epochData.MatrixDataBDS.setZero();
epochData.MatrixDataGalieo.setZero();
// init temp_gps_time
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
epochData.GPSTime = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
epochData.GPSWeek = Week;
temp_gps_time = epochData.GPSTime;// debug 2018.11.15 xiaogongwei
while (!clkfile.atEnd())
{//Enter the first epoch
int PRN = 0;
char tempSatType = 'G';
bool isReadLineData = false;
tempSatType = *(tempLine.mid(3,1).toLatin1().data());
//GPS system
if (tempSatType == 'G'&&isInSystem(tempSatType)&&tempLine.mid(0,3) == "AS ")
{
//Read year, month, day, hour, minute, second
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
epochData.GPSTime = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
epochData.GPSWeek = Week;
temp_gps_time = epochData.GPSTime;// debug 2018.11.15 xiaogongwei
//Read satellite PRN, clock error, medium error
PRN = tempLine.mid(4,2).toInt();//PRN
epochData.MatrixDataGPS(PRN - 1,0) = PRN;
epochData.MatrixDataGPS(PRN - 1,1) = tempLine.mid(40,20).toDouble();//Clock error
epochData.MatrixDataGPS(PRN - 1,2) = tempLine.mid(60,20).toDouble();//Medium error
isReadLineData = true;
}
//Glonass system
else if (tempSatType == 'R'&&isInSystem(tempSatType)&&tempLine.mid(0,3) == "AS ")
{
//Read year, month, day, hour, minute, second
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
epochData.GPSTime = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
epochData.GPSWeek = Week;
temp_gps_time = epochData.GPSTime;// debug 2018.11.15 xiaogongwei
//Read satellite PRN, clock error, medium error
PRN = tempLine.mid(4,2).toInt();//PRN
epochData.MatrixDataGlonass(PRN - 1,0) = PRN;
epochData.MatrixDataGlonass(PRN - 1,1) = tempLine.mid(40,20).toDouble();//Clock error
epochData.MatrixDataGlonass(PRN - 1,2) = tempLine.mid(60,20).toDouble();//Medium error
isReadLineData = true;
}
//BDS system
else if (tempSatType == 'C'&&isInSystem(tempSatType)&&tempLine.mid(0,3) == "AS ")
{
//Read year, month, day, hour, minute, second
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
epochData.GPSTime = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
epochData.GPSWeek = Week;
temp_gps_time = epochData.GPSTime;// debug 2018.11.15 xiaogongwei
//Read satellite PRN, clock error, medium error
PRN = tempLine.mid(4,2).toInt();//PRN
epochData.MatrixDataBDS(PRN - 1,0) = PRN;
epochData.MatrixDataBDS(PRN - 1,1) = tempLine.mid(40,20).toDouble();//Clock error
epochData.MatrixDataBDS(PRN - 1,2) = tempLine.mid(60,20).toDouble();//Medium error
isReadLineData = true;
}
//Galileo system
else if (tempSatType == 'E'&&isInSystem(tempSatType)&&tempLine.mid(0,3) == "AS ")
{
//Read year, month, day, hour, minute, second
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
epochData.GPSTime = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
epochData.GPSWeek = Week;
temp_gps_time = epochData.GPSTime;// debug 2018.11.15 xiaogongwei
//Read satellite PRN, clock error, medium error
PRN = tempLine.mid(4,2).toInt();//PRN
epochData.MatrixDataGalieo(PRN - 1,0) = PRN;
epochData.MatrixDataGalieo(PRN - 1,1) = tempLine.mid(40,20).toDouble();//Clock error
epochData.MatrixDataGalieo(PRN - 1,2) = tempLine.mid(60,20).toDouble();//Medium error
isReadLineData = true;
}
tempLine = clkfile.readLine();//Read a row of coordinate data
// use temp_gps_time juge epoch is become debug 2018.11.15 xiaogongwei
if(tempLine.mid(0,3) == "AS " && temp_gps_time != 0)
{
double cureent_gps_time = 0;
Year = tempLine.mid(8,4).toInt();
Month = tempLine.mid(13,2).toInt();
Day = tempLine.mid(16,2).toInt();
Hours = tempLine.mid(19,2).toInt();
Minutes = tempLine.mid(22,2).toInt();
Seconds = tempLine.mid(25,9).toDouble();
cureent_gps_time = YMD2GPSTime(Year,Month,Day,Hours,Minutes,Seconds,&Week) + WeekOrder.at(i)*604800;//Add 604800s across the week
if(cureent_gps_time != temp_gps_time)
break;// only one jump while 2020.12.07
}
}
m_allEpochData.append(epochData);
}//End of reading file data while (!clkfile.atEnd())
clkfile.close();
}//for (int i = 0;i < ClkFileNames.length();i++)
isReadAllData = true;
//Determine the clock error epoch interval to determine the number of interpolation points
CLKData epoch1 = m_allEpochData.at(20);
CLKData epoch2 = m_allEpochData.at(21);
if (qAbs(epoch1.GPSTime - epoch2.GPSTime) < 60)
lagrangeFact = 2;
}
//Return data
QVector< CLKData > QReadClk::getAllData()
{
readFileData2Vec(m_ClkFileNames);
return m_allEpochData;
}
//Release all data
void QReadClk::releaseAllData()
{
m_allEpochData.clear();
}
////pX,pY,pZ:lagrangeFact point coordinates ;pGPST:lagrangeFact points GPS week seconds;GPST Satellite launch time within seconds of the week
void QReadClk::get8Point(int PRN,char SatType,double *pCLKT,double *pGPST,double GPST)
{//Get the nearest lagrangeFact points
//Check for acceleration
int lengthEpoch = m_allEpochData.length();
//Discover the location of GPST throughout the epoch
int GPSTflag = m_lastGPSTimeFlag;
int numPoint = lagrangeFact / 2;//Take numPoint points before and after
if (qAbs(m_lastCmpGPSTime - GPST) > 0.3)//More than 0.3s indicates that the epoch interval of the observation epoch is definitely above 1 s (reducing the multiple Query position of the same epoch)
{
if (ACCELERATE) m_lastCmpGPSTime = GPST;
for (int i = m_lastGPSTimeFlag;i < lengthEpoch;i++)
{
CLKData epochData = m_allEpochData.at(i);
if (epochData.GPSTime >= GPST)
break;
else
GPSTflag++;
}
//Two-point interpolation occurs because the satellite propagates for 0.00n seconds, causing the GPSTflag to be 1 more.
if (numPoint == 1) GPSTflag--;
}
//Take lagrangeFact points before and after Consider the boundary problem
if (GPSTflag < 0) GPSTflag = 0;
if (ACCELERATE) m_lastGPSTimeFlag = GPSTflag;//Save the latest location
if ((GPSTflag >= numPoint - 1) && (GPSTflag <= lengthEpoch - numPoint - 1))
{//In front of the middle position four contain itself, the last four do not contain itself
for (int i = 0;i < lagrangeFact;i++)
{
CLKData epochData = m_allEpochData.at(GPSTflag - numPoint + 1 + i);
//Determine which system data belongs to
switch (SatType)
{
case 'G':
pCLKT[i] = epochData.MatrixDataGPS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'R':
pCLKT[i] = epochData.MatrixDataGlonass(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'C':
pCLKT[i] = epochData.MatrixDataBDS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'E':
pCLKT[i] = epochData.MatrixDataGalieo(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
default:
pCLKT[i] = 0;
pGPST[i] = 0;
}
}
}
else if(GPSTflag < numPoint - 1)
{//At the start position boundary
for (int i = 0;i < lagrangeFact;i++)
{
CLKData epochData = m_allEpochData.at(i);
//Determine which system data belongs to
switch (SatType)
{
case 'G':
pCLKT[i] = epochData.MatrixDataGPS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'R':
pCLKT[i] = epochData.MatrixDataGlonass(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'C':
pCLKT[i] = epochData.MatrixDataBDS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'E':
pCLKT[i] = epochData.MatrixDataGalieo(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
default:
pCLKT[i] = 0;
pGPST[i] = 0;
}
}
}
else if(GPSTflag > lengthEpoch - numPoint - 1)
{//End position boundary
for (int i = 0;i < lagrangeFact;i++)
{
//debug:2017.07.08
CLKData epochData = m_allEpochData.at(lengthEpoch - (lagrangeFact-i));
//Determine which system data belongs to
switch (SatType)
{
case 'G':
pCLKT[i] = epochData.MatrixDataGPS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'R':
pCLKT[i] = epochData.MatrixDataGlonass(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'C':
pCLKT[i] = epochData.MatrixDataBDS(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
case 'E':
pCLKT[i] = epochData.MatrixDataGalieo(PRN - 1,1);
pGPST[i] = epochData.GPSTime;
break;
default:
pCLKT[i] = 0;
pGPST[i] = 0;
}
}
}
}
//Lagrangian method
void QReadClk::lagrangeMethod(int PRN,char SatType,double GPST,double *pCLKT)
{//Lagrangian interpolation, here before and after the selection - a total of 8 points for interpolation GPST satellite launch time week seconds
*pCLKT = 0;
//Determine whether to set up a legal system
if (!isInSystem(SatType))
return ;
//Determine whether to read data
if (!isReadAllData)
{
readFileData2Vec(m_ClkFileNames);
}
double m_CLKT[12] = {0};//Save the acquired interpolation data
double m_pGPST[12] = {0};
get8Point(PRN,SatType,m_CLKT,m_pGPST,GPST);//Obtain the last 8 or 2 o'clock difference of the PRN satellite launch time
//Verify data integrity (data cannot be missing in precision clock-interpolation)
for (int i = 0;i <lagrangeFact;i++)
if (!m_CLKT[i]) return ;
//Lagrangian interpolation
double sumCLK = 0;//Interpolated coordinates XYZ
for (int k = 0; k < lagrangeFact;k++)
{
double lk = 1;
for (int n = 0;n < lagrangeFact;n++)
{
if (k == n) continue;
lk *= (GPST - m_pGPST[n])/(m_pGPST[k] - m_pGPST[n]);
}
sumCLK += m_CLKT[k]*lk;
}
*pCLKT = sumCLK*M_C;
}
//Obtain the satellite clock error at the time of transmission (multi-system)
void QReadClk::getStaliteClk(int PRN,char SatType,double GPST,double *pCLKT)
{
readFileData2Vec(m_ClkFileNames);
//If you are on the first day of GPS week, the GPST time needs to add 604800, the reason for reading the data.
if (!IsSigalFile&&m_WeekOrder > 0)
{
if (GPST < 24*3600) GPST += 604800;
}
//if (GPST < 24*3600) GPST += 604800;//Consider not comprehensive
lagrangeMethod(PRN,SatType,GPST,pCLKT);
}
bool QReadClk::setSatlitSys(QString SystemStr)
{
bool IsGood = QBaseObject::setSatlitSys(SystemStr);
InitStruct();
return IsGood;
}