Changeset 153 in tmcsimulator for branches/BasicFEPClient/DataPacker.cpp
- Timestamp:
- 10/20/2017 12:46:53 PM (9 years ago)
- File:
-
- 1 edited
-
branches/BasicFEPClient/DataPacker.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/BasicFEPClient/DataPacker.cpp
r142 r153 62 62 else 63 63 return -1; 64 64 65 // if we have data (strcmp returns 0 if a string match) 65 66 if (haveData == 0) { 66 67 LOOP *currLoop = station->loops.at(lane); 67 68 vol = currLoop->vol; 68 69 occ = (int) (currLoop->occ * 900 + 0.5); 69 70 cout << "Volume: " << vol << endl; 71 cout << "OCC : " << occ << endl; 70 72 VOLOCC packedVOLOCC = packVOLOCC(vol, occ); 71 73 pos++; … … 73 75 pos++; 74 76 msg[pos - 1] = packedVOLOCC.low; 75 77 76 78 if (packNo == 5) { 77 79 station->MlTotVol += vol;
Note: See TracChangeset
for help on using the changeset viewer.
