Class PathEvent.Progress

java.lang.Object
com.crossbotics.ftchelper.auto.PathEvent.Progress
Enclosing class:
PathEvent

public static final class PathEvent.Progress extends Object
Where the robot is along the path, worked out every loop (read-only).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Progress(double doneIn, double leftIn, double fraction, int part)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    How much of the path is done, 0 (start) to 1 (end).
    double
    Inches driven along the path so far.
    double
    Inches left to the end of the path.
    int
    The part it drives now, counting from 1 (0 when the follower does not say).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Progress

      public Progress(double doneIn, double leftIn, double fraction, int part)
      Parameters:
      doneIn - inches driven along the path so far
      leftIn - inches left to the end
      fraction - how much of the path is done, 0 to 1
      part - 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).