Package frc.robot.autos
Class TrajectoryBase
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.SequentialCommandGroup
frc.robot.autos.TrajectoryBase
- All Implemented Interfaces:
Sendable
- Direct Known Subclasses:
PPExample
Parent class for all autonomous commands
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
FieldsFields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
ConstructorsConstructorDescriptionTrajectoryBase(Swerve swerve) Autonomous that aligns limelight then executes a trajectory. -
Method Summary
Modifier and TypeMethodDescriptioncom.pathplanner.lib.commands.FollowPathHolonomicbaseSwerveCommand(com.pathplanner.lib.path.PathPlannerPath trajectory) Creates a SwerveController Command using a Path Planner TrajectoryMethods inherited from class edu.wpi.first.wpilibj2.command.SequentialCommandGroup
addCommands, end, execute, getInterruptionBehavior, initialize, initSendable, isFinished, runsWhenDisabledMethods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Field Details
-
swerve
-
-
Constructor Details
-
TrajectoryBase
Autonomous that aligns limelight then executes a trajectory.- Parameters:
swerve- swerve subsystem
-
-
Method Details
-
baseSwerveCommand
public com.pathplanner.lib.commands.FollowPathHolonomic baseSwerveCommand(com.pathplanner.lib.path.PathPlannerPath trajectory) Creates a SwerveController Command using a Path Planner Trajectory- Parameters:
trajectory- a Path Planner Trajectory- Returns:
- A SwerveControllerCommand for the robot to move
-