Class HoldPointTask

java.lang.Object
com.cdarobotics.cdalib.tasks.Task
com.cdarobotics.cdalib.tasks.HoldPointTask

public class HoldPointTask extends Task
A task that commands the PedroPathing follower to hold a pose, finishing immediately after issuing the command.
  • Constructor Details

    • HoldPointTask

      public HoldPointTask(com.pedropathing.follower.Follower follower, com.pedropathing.math.Pose pose)
      Parameters:
      follower - the drivetrain follower
      pose - the pose to hold
  • Method Details

    • init

      public void init()
      Description copied from class: Task
      Called once before the first Task.run(). Set up state and issue starting commands here.
      Specified by:
      init in class Task
    • run

      public boolean run()
      Description copied from class: Task
      Called every loop after Task.init().
      Specified by:
      run in class Task
      Returns:
      true when the task is finished, false to keep running.
    • toString

      @NonNull public String toString()
      Specified by:
      toString in class Task