Jafar
Public Member Functions | Private Attributes
TimestampSensor Class Reference

Detailed Description

Definition at line 18 of file timestampManager.hpp.

List of all members.

Public Member Functions

 TimestampSensor (double clockScale, double latency, double averagingLength=30)
double filter (double sensorDate, double hostDate)
 Notify the arrival of a new data from the sensor.

Private Attributes

double clockScale
double clockShiftS
double clockShiftH
double latency
double averagingLength
bool first
unsigned sector
double next_sector_date
double delay_min
double currentAvgLength
unsigned nAvgLength
double sectorBestS [AVGSIZE]
double sectorBestH [AVGSIZE]

Constructor & Destructor Documentation

TimestampSensor::TimestampSensor ( double  clockScale,
double  latency,
double  averagingLength = 30 
) [inline]
Parameters:
clockScaleinitial value for the coefficient between the sensor clock and the system clock (it will be estimated afterward). For instance if the sensor clock is a number of milliseconds, the clockScale will be 1000.0. If the sensor clock is a counter with data output rate of 100Hz, the clockScale will be 0.01.
latency
averagingLength

Definition at line 47 of file timestampManager.hpp.


Member Function Documentation

double TimestampSensor::filter ( double  sensorDate,
double  hostDate 
) [inline]

Notify the arrival of a new data from the sensor.

Parameters:
sensorDatethe date from the hardware sensor itself (can be just a counter if the output is periodic, but it has to come from the hardware sensor unless you are sure you won't miss any data).
hostDate

Definition at line 58 of file timestampManager.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Wed Oct 15 2014 00:37:31 for Jafar by doxygen 1.7.6.1
LAAS-CNRS