Changeset 2043 in ntrip
- Timestamp:
- Nov 26, 2009, 4:06:08 PM (15 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncpppclient.cpp
r2042 r2043 43 43 44 44 #include "bncpppclient.h" 45 #include "bncutils.h" 45 46 46 47 extern "C" { … … 154 155 } 155 156 cc->tt.set(GPSweek, GPSweeks); 157 cc->rao.ReSize(3); 156 158 in >> cc->iod >> cc->dClk >> cc->rao[0] >> cc->rao[1] >> cc->rao[2]; 157 159 } … … 190 192 void bncPPPclient::applyCorr(const t_corr* cc, ColumnVector& xc, 191 193 ColumnVector& vv) { 194 ColumnVector dx(3); 195 RSW_to_XYZ(xc.Rows(1,3), vv, cc->rao, dx); 196 192 197 193 198 } -
trunk/BNC/bncutils.cpp
r1942 r2043 168 168 return gga.toAscii(); 169 169 } 170 171 // 172 //////////////////////////////////////////////////////////////////////////// 173 void RSW_to_XYZ(const ColumnVector& rr, const ColumnVector& vv, 174 const ColumnVector& rsw, ColumnVector& xyz) { 175 176 ColumnVector along = vv / vv.norm_Frobenius(); 177 ColumnVector cross = crossproduct(rr, vv); cross /= cross.norm_Frobenius(); 178 ColumnVector radial = crossproduct(along, cross); 179 180 Matrix RR(3,3); 181 RR.Column(1) = radial; 182 RR.Column(2) = along; 183 RR.Column(3) = cross; 184 185 xyz = RR * rsw; 186 } -
trunk/BNC/bncutils.h
r1595 r2043 29 29 #include <QDateTime> 30 30 31 #include <newmat.h> 32 31 33 void expandEnvVar(QString& str); 32 34 … … 41 43 const QByteArray& height); 42 44 45 void RSW_to_XYZ(const ColumnVector& rr, const ColumnVector& vv, 46 const ColumnVector& rsw, ColumnVector& xyz); 47 43 48 #endif
Note:
See TracChangeset
for help on using the changeset viewer.