Class SwervePathFollowerStep
- java.lang.Object
-
- org.wildstang.framework.auto.AutoStep
-
- org.wildstang.framework.auto.steps.SwervePathFollowerStep
-
public class SwervePathFollowerStep extends AutoStep
-
-
Constructor Summary
Constructors Constructor Description SwervePathFollowerStep(com.pathplanner.lib.PathPlannerTrajectory pathData, SwerveDriveTemplate drive, boolean isBlue)Sets the robot to track a new path finishes after all values have been read to robot
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetHeading()doublegetVelocity()voidinitialize()This method is called once, when the step is first run.java.lang.StringtoString()Returns the name of the AutoStep, used to uniquely identify the step.voidupdate()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
-
SwervePathFollowerStep
public SwervePathFollowerStep(com.pathplanner.lib.PathPlannerTrajectory pathData, SwerveDriveTemplate drive, boolean isBlue)Sets the robot to track a new path finishes after all values have been read to robot- Parameters:
pathData- double[][] that contains path, should be from \frc\pathsdrive- the swerveDrive subsystemisBlue- whether the robot is on the blue alliance
-
-
Method Detail
-
initialize
public void initialize()
Description copied from class:AutoStepThis 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:
initializein classAutoStep
-
update
public void update()
Description copied from class:AutoStepThis 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.
-
toString
public java.lang.String toString()
Description copied from class:AutoStepReturns the name of the AutoStep, used to uniquely identify the step.
-
getVelocity
public double getVelocity()
-
getHeading
public double getHeading()
-
-