FACT++
1.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
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
}
Time
Adds some functionality to boost::posix_time::ptime for our needs.
Definition:
Time.h:30
ConnectionLidar::fInterval
uint16_t fInterval
Definition:
magiclidar.cc:30
ConnectionLidar::fLastReport
Time fLastReport
Definition:
magiclidar.cc:44
Time::IsValid
bool IsValid() const
Definition:
Time.h:90
ConnectionLidar::fLastReception
Time fLastReception
Definition:
magiclidar.cc:45
Here is the call graph for this function:
ConnectionLidar
Generated on Sun Sep 18 2016 20:50:45 for FACT++ by
1.8.11