Package frc.robot.autonomous.paths
Class AutonomousPath
- java.lang.Object
-
- frc.robot.autonomous.paths.AutonomousPath
-
- Direct Known Subclasses:
ballsScoreTrench
,ScoreCenter
,ScoreGetBalls
,ScorePickupRight
,ScoreRight
,TestPID
,TestReverse
public abstract class AutonomousPath extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AutonomousPath()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description edu.wpi.first.wpilibj2.command.SequentialCommandGroup
generate(boolean score, boolean getBalls)
Generate command group using paramsprotected abstract edu.wpi.first.wpilibj2.command.SequentialCommandGroup
getCommand()
Get the command to runabstract edu.wpi.first.wpilibj.geometry.Pose2d
getStartingPose()
Get the path's starting poseboolean
shouldGetBalls()
Get if the chooser has decided to pick up balls during this pathboolean
shouldScore()
Get if the chooser has decided to score during this path
-
-
-
Method Detail
-
generate
public edu.wpi.first.wpilibj2.command.SequentialCommandGroup generate(boolean score, boolean getBalls)
Generate command group using params- Parameters:
score
- Should score?getBalls
- Should get balls?
-
getCommand
protected abstract edu.wpi.first.wpilibj2.command.SequentialCommandGroup getCommand()
Get the command to run- Returns:
- Command
-
getStartingPose
public abstract edu.wpi.first.wpilibj.geometry.Pose2d getStartingPose()
Get the path's starting pose- Returns:
- Starting pose
-
shouldScore
public boolean shouldScore()
Get if the chooser has decided to score during this path- Returns:
- Should score?
-
shouldGetBalls
public boolean shouldGetBalls()
Get if the chooser has decided to pick up balls during this path- Returns:
- Should pick up balls?
-
-