Class PathHeadingStep
- java.lang.Object
-
- org.wildstang.framework.auto.AutoStep
-
- org.wildstang.framework.auto.steps.PathHeadingStep
-
public class PathHeadingStep extends AutoStep
-
-
Constructor Summary
Constructors Constructor Description PathHeadingStep(double heading, SwerveDriveTemplate drive)
sets the robot in auto to face a certain direction, and stay facing that way finishes automatically, just passes a value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize()
This method is called once, when the step is first run.java.lang.String
toString()
Returns the name of the AutoStep, used to uniquely identify the step.void
update()
This method is called on the active step, once per call to RobotTemplate.autonomousPeriodic().-
Methods inherited from class org.wildstang.framework.auto.AutoStep
isFinished, setFinished, setFinished
-
-
-
-
Constructor Detail
-
PathHeadingStep
public PathHeadingStep(double heading, SwerveDriveTemplate drive)
sets the robot in auto to face a certain direction, and stay facing that way finishes automatically, just passes a value- Parameters:
heading
- field-centric value robot will align towards, in bearing degreesdrive
- the swerveDrive subsystem
-
-
Method Detail
-
initialize
public void initialize()
Description copied from class:AutoStep
This method is called once, when the step is first run. Use this method to set up anything that is necessary for the step.- Specified by:
initialize
in classAutoStep
-
update
public void update()
Description copied from class:AutoStep
This method is called on the active step, once per call to RobotTemplate.autonomousPeriodic(). Steps will continue to have this method called until they set finished to true. Note: this method is first called right after initialize(), with no delay in between.
-
-