Package com.cdarobotics.cdalib.tasks
Class HoldPointTask
java.lang.Object
com.cdarobotics.cdalib.tasks.Task
com.cdarobotics.cdalib.tasks.HoldPointTask
A task that commands the PedroPathing follower to hold a pose, finishing immediately after issuing the command.
-
Constructor Summary
ConstructorsConstructorDescriptionHoldPointTask(com.pedropathing.follower.Follower follower, com.pedropathing.math.Pose pose) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit()Called once before the firstTask.run().booleanrun()Called every loop afterTask.init().toString()Methods inherited from class com.cdarobotics.cdalib.tasks.Task
alongWith, andThen, raceWith, withDeadline
-
Constructor Details
-
HoldPointTask
public HoldPointTask(com.pedropathing.follower.Follower follower, com.pedropathing.math.Pose pose) - Parameters:
follower- the drivetrain followerpose- the pose to hold
-
-
Method Details
-
init
public void init()Description copied from class:TaskCalled once before the firstTask.run(). Set up state and issue starting commands here. -
run
public boolean run()Description copied from class:TaskCalled every loop afterTask.init(). -
toString
-