Class MotionSnapshot

java.lang.Object
me.wobblyyyy.pathfinder.util.MotionSnapshot

public class MotionSnapshot
extends java.lang.Object
A picture - a "snapshot," if you will, of the robot's projected motion.
Since:
0.1.0
Author:
Colin Robertson
  • Field Summary

    Fields
    Modifier and Type Field Description
    private HeadingPoint end  
    private double power  
    private HeadingPoint start  
  • Constructor Summary

    Constructors
    Constructor Description
    MotionSnapshot​(HeadingPoint start, HeadingPoint end, double power)
    Create a new MotionSnapshot.
  • Method Summary

    Modifier and Type Method Description
    HeadingPoint getEnd()
    Get the end position.
    double getPower()
    Get the power value.
    HeadingPoint getStart()
    Get the start position.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

    • MotionSnapshot

      public MotionSnapshot​(HeadingPoint start, HeadingPoint end, double power)
      Create a new MotionSnapshot.
      Parameters:
      start - the start position.
      end - the end position.
      power - the power at which the drivetrain should operate.
  • Method Details

    • getStart

      public HeadingPoint getStart()
      Get the start position.
      Returns:
      the start position.
    • getEnd

      public HeadingPoint getEnd()
      Get the end position.
      Returns:
      the end position.
    • getPower

      public double getPower()
      Get the power value.
      Returns:
      the power value.