Class WPI_PathPoint


  • public class WPI_PathPoint
    extends java.lang.Object
    This class is the datastructure used to parse WPILib Path json files into something Lib5K understands. The fields of this class must match the JS object fields from the json files.
    • Field Detail

      • time

        public double time
      • velocity

        public double velocity
      • acceleration

        public double acceleration
      • curvature

        public double curvature
    • Constructor Detail

      • WPI_PathPoint

        public WPI_PathPoint()
    • Method Detail

      • getTranslation

        public Translation2d getTranslation()
        Convert the WPI_PathPoint into a Translation2d
        Returns:
        Translation2d object