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

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