Package arc.math
Class Extrapolator
java.lang.Object
arc.math.Extrapolator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddSample(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1.booleanaddSample(double packetTime, double curTime, float[] pos) booleanaddSample(double packetTime, double curTime, float[] pos, float[] vel) booleanaddSample(double packetTime, double curTime, float pos, float vel) Version for extrapolator ofsize = 1.doubledoublefloatreadPosition(double forTime) Version for extrapolator ofsize = 1.booleanreadPosition(double forTime, float[] outPos) booleanreadPosition(double forTime, float[] outPos, float[] outVel) voidreset(double packetTime, double curTime, float pos) Version for extrapolator ofsize = 1.voidreset(double packetTime, double curTime, float[] pos) voidreset(double packetTime, double curTime, float[] pos, float[] vel) voidreset(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()
-