Class TankPath

  • All Implemented Interfaces:
    Path

    public class TankPath
    extends java.lang.Object
    implements Path
    A path implementation which represents tank drive. It contains 2 sets of trajectorys, one for each side of the drivebase.
    • Constructor Detail

      • TankPath

        public TankPath()
    • Method Detail

      • getLeft

        public Trajectory getLeft()
        Returns the left side Trajectory.
        Returns:
        Trajectory for left motors.
      • setLeft

        public void setLeft​(Trajectory p_left)
        Sets the left side Trajectory.
        Parameters:
        p_left - New Trajectory for left motors.
      • getRight

        public Trajectory getRight()
        Returns the right side Trajectory.
        Returns:
        Trajectory for right motors.
      • setRight

        public void setRight​(Trajectory p_right)
        Sets the right side Trajectory.
        Parameters:
        p_right - New Trajectory for right motors.