Changeset 2058 in ntrip for trunk/BNC/bncmodel.cpp
- Timestamp:
- Dec 1, 2009, 11:49:03 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r2057 r2058 42 42 43 43 #include "bncmodel.h" 44 #include "bncpppclient.h" 45 #include "bancroft.h" 44 46 45 47 using namespace std; … … 55 57 } 56 58 59 // Constructor 60 //////////////////////////////////////////////////////////////////////////// 61 bncModel::bncModel() { 62 _xcBanc.ReSize(4); 63 } 64 65 // Destructor 66 //////////////////////////////////////////////////////////////////////////// 67 bncModel::~bncModel() { 68 } 69 70 // Bancroft Solution 71 //////////////////////////////////////////////////////////////////////////// 72 t_irc bncModel::cmpBancroft(t_epoData* epoData) { 73 74 const unsigned MINOBS = 4; 75 76 if (epoData->size() < MINOBS) { 77 return failure; 78 } 79 80 Matrix BB(epoData->size(), 4); 81 82 QMapIterator<QString, t_satData*> it(epoData->satData); 83 int iObs = 0; 84 while (it.hasNext()) { 85 it.next(); 86 QString prn = it.key(); 87 t_satData* satData = it.value(); 88 ++iObs; 89 BB(iObs, 1) = satData->xx(1); 90 BB(iObs, 2) = satData->xx(2); 91 BB(iObs, 3) = satData->xx(3); 92 BB(iObs, 4) = satData->P3 + satData->clk; 93 } 94 95 bancroft(BB, _xcBanc); 96 97 return success; 98 }
Note:
See TracChangeset
for help on using the changeset viewer.