FACT++  1.0
int ConnectionLidar::GetState ( ) const
inline

Definition at line 304 of file magiclidar.cc.

References Time::IsValid(), and kMaxAddr.

305  {
306  if (fLastReport.IsValid() && fLastReport+boost::posix_time::seconds(fInterval*2)>Time())
307  return 3;
308 
309  if (fLastReception.IsValid() && fLastReception+boost::posix_time::seconds(fInterval*2)>Time())
310  return 2;
311 
312  return 1;
313 
314  }
Adds some functionality to boost::posix_time::ptime for our needs.
Definition: Time.h:30
uint16_t fInterval
Definition: magiclidar.cc:30
bool IsValid() const
Definition: Time.h:90

+ Here is the call graph for this function: