Changeset 2713 in ntrip
- Timestamp:
- Nov 18, 2010, 2:55:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/BNC/test_bnc_qt.cpp ¶
r2704 r2713 46 46 using namespace std; 47 47 48 class t_obs Internal{48 class t_obsOld { 49 49 public: 50 50 int flags; … … 143 143 // Interpret a portion of buffer as observation 144 144 // -------------------------------------------- 145 t_obs Internal* obs;146 const int obsSize = sizeof(t_obs Internal);145 t_obsOld* obs; 146 const int obsSize = sizeof(t_obsOld); 147 147 148 148 149 149 while (buffer.size() >= obsSize) { 150 150 151 obs = (t_obs Internal*) (buffer.left(obsSize).data());151 obs = (t_obsOld*) (buffer.left(obsSize).data()); 152 152 153 153 cout << obs->StatID << " " … … 160 160 << setprecision(4) << obs->P2 << " " 161 161 << setprecision(4) << obs->L1 << " " 162 << obs->slip_cnt_L1 << " " 162 163 << setprecision(4) << obs->L2 << " " 163 << obs->slip_cnt_L1 << " "164 164 << obs->slip_cnt_L2 << " " 165 165 << setprecision(4) << obs->S1 << " " 166 << setprecision(4) << obs->S2 << " " 167 << obs->SNR1 << " " 168 << obs->SNR2 << endl; 166 << setprecision(4) << obs->S2 << endl; 169 167 170 168 buffer.remove(0,obsSize);
Note:
See TracChangeset
for help on using the changeset viewer.