Navigation
API > API/Plugins > API/Plugins/LiveLink
References
Module | LiveLink |
Header | /Engine/Plugins/Animation/LiveLink/Source/LiveLink/Public/ClockOffsetEstimatorRamp.h |
Include | #include "ClockOffsetEstimatorRamp.h" |
Syntax
class FClockOffsetEstimatorRamp
Remarks
Continually estimates the time offset between two live time sources.
Samples of clock times corresponding to the same instant are provided, and it will update its estimation of the time difference between the clocks.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | ConsecutiveBigErrorCount | Current consecutive big error count. Initialized at required count so first pass snaps |
![]() |
int32 | ConsecutiveTooBigErrorRequired | Consecutive time a too big estimation error is required before clamping |
![]() |
double | CorrectionStep | Correction step to apply, positive or negative depending on error sign |
![]() |
double | EstimatedOffset | Current estimated offset between two clocks |
![]() |
double | MaxAllowedEstimationError | Maximum error tolerated before considering clamping to current offset |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
double | Get current estimated offset between the two tracked clocks | |
![]() |
void | Reset () |
Puts back the estimator in its initial state |
![]() |
void | SetCorrectionStep
(
double NewValue |
Sets incremental correction step |
![]() |
void | SetMaxAllowedEstimationError
(
double NewValue |
Set maximum allowed estimation error before looking to clamp |
![]() |
void | SetRequiredConsecutiveBigError
(
int32 NewCount |
Set required consecutive big errors to clamp |
![]() |
void | UpdateEstimation
(
double Atime, |
Update the current time offset estimation with a new data sample |