Package arc.math
Class Extrapolator
java.lang.Object
arc.math.Extrapolator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addSample
(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1
.boolean
addSample
(double packetTime, double curTime, float[] pos) boolean
addSample
(double packetTime, double curTime, float[] pos, float[] vel) boolean
addSample
(double packetTime, double curTime, float pos, float vel) Version for extrapolator ofsize = 1
.double
double
float
readPosition
(double forTime) Version for extrapolator ofsize = 1
.boolean
readPosition
(double forTime, float[] outPos) boolean
readPosition
(double forTime, float[] outPos, float[] outVel) void
reset
(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1
.void
reset
(double packetTime, double curTime, float[] pos) void
reset
(double packetTime, double curTime, float[] pos, float[] vel) void
reset
(double packetTime, double curTime, float pos, float vel) Version for extrapolator ofsize = 1
.
-
Constructor Details
-
Extrapolator
public Extrapolator(int size)
-
-
Method Details
-
addSample
public boolean addSample(double packetTime, double curTime, float[] pos) -
addSample
public boolean addSample(double packetTime, double curTime, float[] pos, float[] vel) -
addSample
public boolean addSample(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1
. -
addSample
public boolean addSample(double packetTime, double curTime, float pos, float vel) Version for extrapolator ofsize = 1
. -
reset
public void reset(double packetTime, double curTime, float[] pos) -
reset
public void reset(double packetTime, double curTime, float[] pos, float[] vel) -
reset
public void reset(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1
. -
reset
public void reset(double packetTime, double curTime, float pos, float vel) Version for extrapolator ofsize = 1
. -
readPosition
public boolean readPosition(double forTime, float[] outPos) -
readPosition
public boolean readPosition(double forTime, float[] outPos, float[] outVel) -
readPosition
public float readPosition(double forTime) Version for extrapolator ofsize = 1
. -
estimateLatency
public double estimateLatency() -
estimateUpdateTime
public double estimateUpdateTime()
-