Changeset 1867 in ntrip
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNS/bns.cpp
r1838 r1867 256 256 if (_casterEph) { 257 257 _casterEph->open(); 258 // TODO encode ephemerides into RTCM v3 format 259 QByteArray buffer = "New Ephemeris " + ep->prn().toAscii() + "\n"; 260 _casterEph->write(buffer.data(), buffer.length()); 261 int len = buffer.length(); 262 if (len > 0) { 263 emit(newOutEphBytes(len)); 264 } 258 unsigned char Array[67]; 259 int size = ep->RTCM3(Array); 260 if (size > 0) { 261 _casterEph->write((char*) Array, size); 262 emit(newOutEphBytes(size)); 263 } 264 //// QByteArray buffer = "New Ephemeris " + ep->prn().toAscii() + "\n"; 265 //// _casterEph->write(buffer.data(), buffer.length()); 266 //// int len = buffer.length(); 267 //// if (len > 0) { 268 //// emit(newOutEphBytes(len)); 269 //// } 265 270 } 266 271 -
trunk/BNS/bnseph.cpp
r1866 r1867 230 230 } 231 231 } 232 unsigned char Array[67];233 int size = RTCM3GPS(Array);234 fwrite(Array,size, 1, stdout);235 232 } 236 233 … … 282 279 GPSADDBITS(a,i)}; 283 280 284 int t_ephGPS::RTCM3 GPS(unsigned char *buffer)281 int t_ephGPS::RTCM3(unsigned char *buffer) 285 282 { 286 283 … … 340 337 size += 3; 341 338 return size; 342 } /* RTCM3GPS */339 } 343 340 344 341 // Compute GPS Satellite Position … … 481 478 _xv(5) = _y_velocity * 1.e3; 482 479 _xv(6) = _z_velocity * 1.e3; 483 unsigned char Array[51];484 int size = RTCM3GLO(Array);485 fwrite(Array,size, 1, stdout);486 480 } 487 481 … … 511 505 GLONASSADDBITS(a-1,i)} 512 506 513 int t_ephGlo::RTCM3 GLO(unsigned char *buffer)507 int t_ephGlo::RTCM3(unsigned char *buffer) 514 508 { 515 509 … … 572 566 size += 3; 573 567 return size; 574 } /* RTCM3GLO */568 } 575 569 576 570 // Derivative of the state vector using a simple force model (static) -
trunk/BNS/bnseph.h
r1866 r1867 21 21 virtual void read(const QStringList& lines) = 0; 22 22 virtual int IOD() const = 0; 23 virtual int RTCM3(unsigned char *) = 0; 23 24 protected: 24 25 QString _prn; … … 38 39 ColumnVector& vv) const; 39 40 virtual int IOD() const; 40 virtual int RTCM3 GLO(unsigned char *);41 virtual int RTCM3(unsigned char *); 41 42 private: 42 43 static ColumnVector glo_deriv(double /* tt */, const ColumnVector& xv); … … 71 72 ColumnVector& vv) const; 72 73 virtual int IOD() const {return int(_IODE);} 73 virtual int RTCM3 GPS(unsigned char *);74 virtual int RTCM3(unsigned char *); 74 75 private: 75 76 double _TOW; // [s]
Note:
See TracChangeset
for help on using the changeset viewer.