Package com.crossbotics.ftchelper.auto
Class PathEvent.Progress
java.lang.Object
com.crossbotics.ftchelper.auto.PathEvent.Progress
- Enclosing class:
PathEvent
Where the robot is along the path, worked out every loop (read-only).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Progress
public Progress(double doneIn, double leftIn, double fraction, int part) - Parameters:
doneIn- inches driven along the path so farleftIn- inches left to the endfraction- how much of the path is done, 0 to 1part- the part it drives now, from 1 (0 = unknown)
-
-
Method Details
-
inchesDone
public double inchesDone()Inches driven along the path so far. -
inchesLeft
public double inchesLeft()Inches left to the end of the path. -
fraction
public double fraction()How much of the path is done, 0 (start) to 1 (end). -
part
public int part()The part it drives now, counting from 1 (0 when the follower does not say).
-