Package org.yamcs.http.api
Class TimeCorrelationApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTimeOfFlightIntervals(Context ctx, AddTimeOfFlightIntervalsRequest request, Observer<com.google.protobuf.Empty> observer) Add intervals for the time of flight calculation.voiddeleteTimeOfFlightIntervals(Context ctx, DeleteTimeOfFlightIntervalsRequest request, Observer<com.google.protobuf.Empty> observer) Delete intervals for the time of flight calculation.voidgetConfig(Context ctx, GetTcoConfigRequest request, Observer<TcoConfig> observer) Get the TCO config Returns the TCO configuration comprising the accuracy, validity and the fixed delays.voidgetStatus(Context ctx, GetTcoStatusRequest request, Observer<TcoStatus> observer) Get the TCO status Returns the TCO status comprising the currently used coefficients, the last computed deviation and the last received samples.voidreset(Context ctx, TcoResetRequest request, Observer<com.google.protobuf.Empty> observer) Reset the time correlation.voidsetCoefficients(Context ctx, SetCoefficientsRequest request, Observer<com.google.protobuf.Empty> observer) Set the TCO coefficients Manually set the coefficients to be used for time correlation.voidsetConfig(Context ctx, SetTcoConfigRequest request, Observer<com.google.protobuf.Empty> observer) Set the TCO config Set the TCO configuration.Methods inherited from class org.yamcs.protobuf.AbstractTimeCorrelationApi
callMethod, callMethod, getDescriptorForType, getRequestPrototype, getResponsePrototype
-
Constructor Details
-
TimeCorrelationApi
public TimeCorrelationApi()
-
-
Method Details
-
getConfig
Description copied from class:AbstractTimeCorrelationApiGet the TCO config Returns the TCO configuration comprising the accuracy, validity and the fixed delays.
- Specified by:
getConfigin classAbstractTimeCorrelationApi<Context>
-
setConfig
public void setConfig(Context ctx, SetTcoConfigRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractTimeCorrelationApiSet the TCO config Set the TCO configuration. The configuration is not persisted on disk.
- Specified by:
setConfigin classAbstractTimeCorrelationApi<Context>
-
getStatus
Description copied from class:AbstractTimeCorrelationApiGet the TCO status Returns the TCO status comprising the currently used coefficients, the last computed deviation and the last received samples.
- Specified by:
getStatusin classAbstractTimeCorrelationApi<Context>
-
setCoefficients
public void setCoefficients(Context ctx, SetCoefficientsRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractTimeCorrelationApiSet the TCO coefficients Manually set the coefficients to be used for time correlation. These will overwrite the automatic computed coefficients.
- Specified by:
setCoefficientsin classAbstractTimeCorrelationApi<Context>
-
reset
public void reset(Context ctx, TcoResetRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractTimeCorrelationApiReset the time correlation. The current used TCO coefficients are removed together with all collected samples.
- Specified by:
resetin classAbstractTimeCorrelationApi<Context>
-
addTimeOfFlightIntervals
public void addTimeOfFlightIntervals(Context ctx, AddTimeOfFlightIntervalsRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractTimeCorrelationApiAdd intervals for the time of flight calculation. Each ``[ertStart, ertStop)`` interval contains a polynomial function used to compute the time of flight for the given ``ert``. The intervals can overlap and are sorted in descending order of the start time. The first (highest start time) interval where the requested ert fits, will be used for the calculation. The formula used for calculating the time of flight for a frame/packet received at ``ert`` in the ``[ertStart, ertStop)`` interval is: ``delta = ert - ertStart`` ``tof = polCoef[0] + polCoef[1] * delta + polCoef[2] * delta^2 + ...`` The result of the polynomial is the ``tof`` expressed in seconds.- Specified by:
addTimeOfFlightIntervalsin classAbstractTimeCorrelationApi<Context>
-
deleteTimeOfFlightIntervals
public void deleteTimeOfFlightIntervals(Context ctx, DeleteTimeOfFlightIntervalsRequest request, Observer<com.google.protobuf.Empty> observer) Description copied from class:AbstractTimeCorrelationApiDelete intervals for the time of flight calculation. All the intervals with the start time falling in the requested [start, stop] interval will be removed.
- Specified by:
deleteTimeOfFlightIntervalsin classAbstractTimeCorrelationApi<Context>
-