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
- Parameters:
-
clockScale | initial 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
Notify the arrival of a new data from the sensor.
- Parameters:
-
sensorDate | the 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: