source: ntrip/trunk/BNC/src/satObs.cpp@ 6465

Last change on this file since 6465 was 6465, checked in by mervart, 9 years ago
File size: 2.8 KB
RevLine 
[6176]1#include <iostream>
[6177]2#include <iomanip>
[6176]3#include <sstream>
[6144]4
5#include "satObs.h"
[6178]6
[6144]7using namespace std;
8
9//
10////////////////////////////////////////////////////////////////////////////
[6180]11void t_clkCorr::reset() {
[6182]12 _prn.set(' ', 0);
13 _time.reset();
[6160]14 _iod = 0;
15 _dClk = 0.0;
16 _dotDClk = 0.0;
17 _dotDotDClk = 0.0;
[6144]18}
19
20//
21////////////////////////////////////////////////////////////////////////////
[6455]22void t_clkCorr::writeEpoch(std::ostream* out, const QList<t_clkCorr>& corrList) {
[6456]23 if (!out || corrList.size() == 0) {
24 return;
25 }
[6457]26 out->setf(ios::fixed);
27 bncTime epoTime;
28 QListIterator<t_clkCorr> it(corrList);
29 while (it.hasNext()) {
30 const t_clkCorr& corr = it.next();
31 if (!epoTime.valid()) {
32 epoTime = corr._time;
[6459]33 *out << "> CLOCK " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " "
[6458]34 << corrList.size() << ' ' << corr._staID << endl;
[6457]35 }
36 *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' '
37 << setw(10) << setprecision(4) << corr._dClk * t_CST::c << ' '
38 << setw(10) << setprecision(4) << corr._dotDClk * t_CST::c << ' '
39 << setw(10) << setprecision(4) << corr._dotDotDClk * t_CST::c << endl;
40 }
[6456]41 out->flush();
[6144]42}
43
44//
45////////////////////////////////////////////////////////////////////////////
[6465]46void t_clkCorr::readEpoch(const QStringList& lines, QList<t_clkCorr>& corrList) {
[6180]47}
48
49//
50////////////////////////////////////////////////////////////////////////////
51void t_orbCorr::reset() {
[6182]52 _prn.set(' ', 0);
53 _time.reset();
[6160]54 _xr.ReSize(3); _xr = 0.0;
55 _dotXr.ReSize(3); _dotXr = 0.0;
56 _iod = 0;
57 _system = 'R';
[6144]58}
59
60//
61////////////////////////////////////////////////////////////////////////////
[6455]62void t_orbCorr::writeEpoch(std::ostream* out, const QList<t_orbCorr>& corrList) {
[6456]63 if (!out || corrList.size() == 0) {
64 return;
65 }
[6460]66 out->setf(ios::fixed);
67 bncTime epoTime;
68 QListIterator<t_orbCorr> it(corrList);
69 while (it.hasNext()) {
70 const t_orbCorr& corr = it.next();
71 if (!epoTime.valid()) {
72 epoTime = corr._time;
73 *out << "> ORBIT " << epoTime.datestr(' ') << ' ' << epoTime.timestr(1,' ') << " "
74 << corrList.size() << ' ' << corr._staID << endl;
75 }
76 *out << corr._prn.toString() << ' ' << setw(3) << corr._iod << ' '
77 << setw(10) << setprecision(4) << corr._xr[0] << ' '
78 << setw(10) << setprecision(4) << corr._xr[1] << ' '
79 << setw(10) << setprecision(4) << corr._xr[2] << " "
80 << setw(10) << setprecision(4) << corr._dotXr[0] << ' '
81 << setw(10) << setprecision(4) << corr._dotXr[1] << ' '
82 << setw(10) << setprecision(4) << corr._dotXr[2] << endl;
83 }
[6456]84 out->flush();
[6144]85}
86
[6455]87//
88////////////////////////////////////////////////////////////////////////////
[6465]89void t_orbCorr::readEpoch(const QStringList& lines, QList<t_orbCorr>& corrList) {
[6455]90}
Note: See TracBrowser for help on using the repository browser.