Class TrajectoryBase

All Implemented Interfaces:
Sendable
Direct Known Subclasses:
PPExample

public class TrajectoryBase extends SequentialCommandGroup
Parent class for all autonomous commands
  • Field Details

    • swerve

      public Swerve swerve
  • Constructor Details

    • TrajectoryBase

      public TrajectoryBase(Swerve swerve)
      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