Class SwervePathFollowerStep
java.lang.Object
org.wildstang.framework.auto.AutoStep
org.wildstang.framework.auto.steps.SwervePathFollowerStep
-
Constructor Summary
ConstructorsConstructorDescriptionSwervePathFollowerStep(String pathData, SwerveDriveTemplate drive) Sets the robot to track a new path finishes after all values have been read to robot -
Method Summary
Modifier and TypeMethodDescriptiondoublechoreo.trajectory.Trajectory<choreo.trajectory.SwerveSample>voidThis method is called once, when the step is first run.toString()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 Details
-
SwervePathFollowerStep
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 subsystem
-
-
Method Details
-
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
Description copied from class:AutoStepReturns the name of the AutoStep, used to uniquely identify the step. -
getHeading
public double getHeading() -
getTraj
-