Kallisto Linux API
Library for interacting with Kallisto devices
TimeAjustSynchronizer Class Reference

#include <time_adjust_synchronizer.hpp>

Inheritance diagram for TimeAjustSynchronizer:
Collaboration diagram for TimeAjustSynchronizer:

Public Member Functions

 TimeAjustSynchronizer (bluetooth::BluetoothDispatcher &dispatcher)
 
error::KallistoDetailedResult syncSensorEvent (Sensor &sensor, SensorEvent &event)
 
- Public Member Functions inherited from TimeSynchronizer
 TimeSynchronizer (bluetooth::BluetoothDispatcher &dispatcher)
 
virtual ~TimeSynchronizer ()
 

Additional Inherited Members

- Protected Member Functions inherited from TimeSynchronizer
 TimeSynchronizer (TimeSynchronizer const &)=delete
 
 TimeSynchronizer (TimeSynchronizer &&)=delete
 
void operator= (TimeSynchronizer const &)=delete
 
void operator= (TimeSynchronizer &&)=delete
 
- Protected Attributes inherited from TimeSynchronizer
bluetooth::BluetoothDispatcherm_dispatcher
 

Detailed Description

Simple timestamp synchronizer. When we receive the first sensor event,we assume that timestamp as the base for all the others. This approach adds an error since we don't know the time passed since the sensor data was acquired until it reached the host.

Constructor & Destructor Documentation

◆ TimeAjustSynchronizer()

Constructor.

Member Function Documentation

◆ syncSensorEvent()

error::KallistoDetailedResult syncSensorEvent ( Sensor sensor,
SensorEvent event 
)
virtual

Called ther is a new sensor event that should be synchronized.

Parameters
eventThe sensor event to be synchronized.
Returns
A detailed result.

Implements TimeSynchronizer.


The documentation for this class was generated from the following file: