| 1 |
//============================================================================ |
//============================================================================ |
| 2 |
// $Id: PacketUser.cpp,v 1.17 2010/02/03 14:11:38 mocchiut Exp $ |
// $Id: PacketUser.cpp,v 1.18 2010/02/11 09:02:09 mocchiut Exp $ |
| 3 |
// Description : |
// Description : |
| 4 |
//============================================================================ |
//============================================================================ |
| 5 |
#include "PacketUser.h" |
#include "PacketUser.h" |
| 490 |
}; |
}; |
| 491 |
}; |
}; |
| 492 |
// |
// |
| 493 |
if ( !existsts ){ // try with inclination mcmd |
if ( !existsts && !obt_time_sync && !last_time_sync_info ){ // try with inclination mcmd but only if everything else fails and check that the result is good |
| 494 |
// |
// |
| 495 |
Double_t timesync = 0.; |
Double_t timesync = 0.; |
| 496 |
// |
// |
| 520 |
mainLogUtil->logAll(msg); |
mainLogUtil->logAll(msg); |
| 521 |
}; |
}; |
| 522 |
}; |
}; |
| 523 |
|
if ( labs(labs(last_time_sync_info_prevvalue-obt_time_sync_prevvalue)-labs(TSYNC-int(OBT/1000))) > 10 ) return; |
| 524 |
}; |
}; |
| 525 |
if ( !existsts ) return; |
if ( !existsts ) return; |
|
|
|
| 526 |
// printf(" TIMESYNC FROM MCMD FOUND: TSYNC = %i OBT = %i \n",TSYNC,OBT); |
// printf(" TIMESYNC FROM MCMD FOUND: TSYNC = %i OBT = %i \n",TSYNC,OBT); |
| 527 |
obt_time_sync = int(OBT/1000); |
obt_time_sync = int(OBT/1000); |
| 528 |
last_time_sync_info = TSYNC; |
last_time_sync_info = TSYNC; |