Changeset 10732
- Timestamp:
- 05/17/11 20:20:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ftm.cc
r10691 r10732 154 154 155 155 uint16_t fCounter; 156 uint16_t fTimeStamp; 156 157 157 158 bool fReportsDisabled; … … 162 163 return; 163 164 164 if (fHeader.fState == FTM::kFtmRunning)165 fDynamicData.fOnTimeCounter = lrint(Time().UnixTime()-fStartTime);165 //if (fHeader.fState == FTM::kFtmRunning) 166 // fDynamicData.fOnTimeCounter = lrint(Time().UnixTime()-fStartTime); 166 167 167 168 fDynamicData.fTempSensor[0] = (23. + (6.*rand()/RAND_MAX-3))*10; … … 177 178 fHeader.fDataSize=sizeof(FTM::DynamicData)/2+1; 178 179 fHeader.fTriggerCounter = fCounter++; 179 fHeader.fTimeStamp = lrint(Time().UnixTime());180 fHeader.fTimeStamp = fTimeStamp++;//lrint(Time().UnixTime()); 180 181 181 182 fBufHeader = fHeader.HtoN(); … … 192 193 fHeader.fDataSize=sizeof(FTM::StaticData)/2+1; 193 194 fHeader.fTriggerCounter = fCounter++; 194 fHeader.fTimeStamp = lrint(Time().UnixTime());195 fHeader.fTimeStamp = fTimeStamp;//lrint(Time().UnixTime()); 195 196 196 197 for (int i=0; i<4; i++) … … 245 246 fHeader.fDataSize=sizeof(FTM::FtuList)/2+1; 246 247 fHeader.fTriggerCounter = fCounter++; 247 fHeader.fTimeStamp = lrint(Time().UnixTime());248 fHeader.fTimeStamp = fTimeStamp;//lrint(Time().UnixTime()); 248 249 249 250 fFtuList[1].fPingAddr = ((rand()&1)<<9) | 1; … … 330 331 fStartTime = Time().UnixTime(); 331 332 333 fCounter = 0; 334 fTimeStamp = 0; 335 332 336 fBufCommand.resize(5); 333 337 AsyncRead(ba::buffer(fBufCommand)); … … 336 340 case kCmdStopRun: 337 341 fHeader.fState = FTM::kFtmIdle; 342 343 fCounter = 0; 344 fTimeStamp = 0; 338 345 339 346 fBufCommand.resize(5); … … 362 369 fHeader.fDataSize=2; 363 370 fHeader.fTriggerCounter = fCounter++; 364 fHeader.fTimeStamp = lrint(Time().UnixTime());371 fHeader.fTimeStamp = fTimeStamp;//lrint(Time().UnixTime()); 365 372 366 373 fBufHeader = fHeader.HtoN();
Note:
See TracChangeset
for help on using the changeset viewer.