Package org.yamcs.time
Class TimeOfFlightEstimator
- java.lang.Object
-
- org.yamcs.time.TimeOfFlightEstimator
-
public class TimeOfFlightEstimator extends Object
Time of flight estimator.It returns time of flight between a spacecraft and a ground antenna by interpolating using user defined spline polynomials.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TimeOfFlightEstimator.TofInterval
Used for polynomial interpolation of time of flight based on ERT.
-
Field Summary
Fields Modifier and Type Field Description static TupleDefinition
TDEF
-
Constructor Summary
Constructors Constructor Description TimeOfFlightEstimator(String yamcsInstance, String clockName, boolean savePolynomials)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInterval(Instant ertStart, Instant ertStop, double[] polCoefficients)
void
addIntervals(Collection<TimeOfFlightEstimator.TofInterval> intervals)
void
deleteSplineIntervals(Instant start, Instant stop)
double
getTof(Instant ert)
Returns time of flight of the signal received at ert at the ground station
-
-
-
Field Detail
-
TDEF
public static final TupleDefinition TDEF
-
-
Constructor Detail
-
TimeOfFlightEstimator
public TimeOfFlightEstimator(String yamcsInstance, String clockName, boolean savePolynomials) throws InitException
- Throws:
InitException
-
-
Method Detail
-
getTof
public double getTof(Instant ert)
Returns time of flight of the signal received at ert at the ground station- Parameters:
ert
-- Returns:
- time of flight in seconds or NaN if it cannot be computed
-
addIntervals
public void addIntervals(Collection<TimeOfFlightEstimator.TofInterval> intervals)
-
-