62 sf1XmitTime(0), toeWeek(0), codeflgs(0), accuracy(0),
63 health(0), L2Pdata(0), IODC(0), IODE(0), af0(0), af1(0), af2(0),
64 Tgd(0), Cuc(0), Cus(0), Crc(0), Crs(0), Cic(0), Cis(0), Toe(0),
65 M0(0), dn(0), ecc(0), Ahalf(0), OMEGA0(0), i0(0), w(0), OMEGAdot(0),
72 :
time(ee.getEpochTime()), PRNID(ee.getPRNID()), sf1XmitTime(0),
73 toeWeek(0), codeflgs(ee.getCodeFlags()), accuracy(ee.getAccuracy()),
74 health(ee.getHealth()), L2Pdata(ee.getL2Pdata()), IODC(ee.getIODC()),
75 IODE(ee.getIODE()), af0(ee.getAf0()), af1(ee.getAf1()),
76 af2(ee.getAf2()), Tgd(ee.getTgd()), Cuc(ee.getCuc()),
77 Cus(ee.getCus()), Crc(ee.getCrc()), Crs(ee.getCrs()),
78 Cic(ee.getCic()), Cis(ee.getCis()), Toe(ee.getToe()), M0(ee.getM0()),
79 dn(ee.getDn()), ecc(ee.getEcc()), Ahalf(ee.getAhalf()),
80 OMEGA0(ee.getOmega0()), i0(ee.getI0()), w(ee.getW()),
81 OMEGAdot(ee.getOmegaDot()), idot(ee.getIDot()),
82 fitint(ee.getFitInterval())
91 strm << setw(2) << right <<
PRNID
145 s <<
"PRN: " << setw(2) <<
PRNID
148 <<
" IODE: " << setw(4) << int(
IODE)
155 s <<
"PRN: " << setw(2) <<
PRNID
157 <<
" TOC: " <<
printTime(
time,
"%02m/%02d/%04Y %02H:%02M:%02S")
158 <<
" IODE: " << setw(4) << int(
IODE)
172 CommonTime how1(getHOWTime()), how2(how1+6), how3(how2+6);
174 ee.
setSF1(0, ws1.sow, 0, ws1.week, codeflgs, 0, health,
175 short(IODC), L2Pdata, Tgd, getTocWS().sow, af2, af1, af0, 0,
177 ee.
setSF2(0, ws2.sow, 0,
short(IODE), Crs, dn, M0, Cuc, ecc, Cus, Ahalf,
178 Toe, (fitint > 4) ? 1 : 0);
179 ee.
setSF3(0, ws3.
sow, 0, Cic, OMEGA0, Cis, i0, Crc, w, OMEGAdot,
193 l.push_back(howws.
sow);
194 l.push_back(howws.
week);
232 for (
int i = 2; i <= 17; i += 3)
233 if (currentLine[i] !=
' ')
234 throw(FFStreamError(
"Badly formatted line"));
238 short yr =
asInt(currentLine.substr(2,3));
239 short mo =
asInt(currentLine.substr(5,3));
240 short day =
asInt(currentLine.substr(8,3));
241 short hr =
asInt(currentLine.substr(11,3));
242 short min =
asInt(currentLine.substr(14,3));
243 double sec =
asDouble(currentLine.substr(17,5));
246 const int rolloverYear = 80;
247 if (yr < rolloverYear)
260 if(ds != 0)
time += ds;
262 af0 = currentLine.substr(22,19);
263 af1 = currentLine.substr(41,19);
264 af2 = currentLine.substr(60,19);
266 catch (std::exception &e)
268 FFStreamError
err(
"std::exception: " +
278 IODE = currentLine.substr(3,19);
279 Crs = currentLine.substr(22,19);
280 dn = currentLine.substr(41,19);
281 M0 = currentLine.substr(60,19);
283 catch (std::exception &e)
285 FFStreamError
err(
"std::exception: " +
295 Cuc = currentLine.substr(3,19);
296 ecc = currentLine.substr(22,19);
297 Cus = currentLine.substr(41,19);
298 Ahalf = currentLine.substr(60,19);
300 catch (std::exception &e)
302 FFStreamError
err(
"std::exception: " +
312 Toe = currentLine.substr(3,19);
313 Cic = currentLine.substr(22,19);
314 OMEGA0 = currentLine.substr(41,19);
315 Cis = currentLine.substr(60,19);
317 catch (std::exception &e)
319 FFStreamError
err(
"std::exception: " +
329 i0 = currentLine.substr(3,19);
330 Crc = currentLine.substr(22,19);
331 w = currentLine.substr(41,19);
332 OMEGAdot = currentLine.substr(60,19);
334 catch (std::exception &e)
336 FFStreamError
err(
"std::exception: " +
346 RNDouble codeL2(0), L2P(0), toe_wn(0);
348 idot = currentLine.substr(3,19);
349 codeL2 = currentLine.substr(22,19);
350 toe_wn = currentLine.substr(41,19);
351 L2P = currentLine.substr(60,19);
357 catch (std::exception &e)
359 FFStreamError
err(
"std::exception: " +
371 accuracy = currentLine.substr(3,19);
372 SV_health = currentLine.substr(22,19);
373 Tgd = currentLine.substr(41,19);
374 IODC = currentLine.substr(60,19);
377 health = (short) SV_health;
379 catch (std::exception &e)
381 FFStreamError
err(
"std::exception: " +
393 HOW_sec = currentLine.substr(3,19);
400 fitint = currentLine.substr(22,19);
402 catch (std::exception &e)
404 FFStreamError
err(
"std::exception: " +
430 double diff =
Toe - properXmit;