Class ThunderAutoTrajectoryCommand

java.lang.Object
edu.wpi.first.wpilibj2.command.Command
com.thunder.lib.commands.ThunderAutoTrajectoryCommand
All Implemented Interfaces:
Sendable

public class ThunderAutoTrajectoryCommand extends Command
A command that follows a ThunderAuto Trajectory using the specified ThunderTrajectoryRunnerProperties.
  • Constructor Details

    • ThunderAutoTrajectoryCommand

      public ThunderAutoTrajectoryCommand(String trajectoryName, ThunderAutoProject project, ThunderTrajectoryRunnerProperties properties)
      Constructs a ThunderAutoTrajectoryCommand.
      Parameters:
      trajectoryName - The name of the trajectory to follow.
      project - The ThunderAutoProject that contains the trajectory and any referenced actions.
      properties - The ThunderTrajectoryRunnerProperties to use for following the trajectory.
  • Method Details

    • isValid

      public boolean isValid()
      Checks if the command has a valid trajectory to follow.
      Returns:
      True or false.
    • initialize

      public void initialize()
      Overrides:
      initialize in class Command
    • execute

      public void execute()
      Overrides:
      execute in class Command
    • end

      public void end(boolean interrupted)
      Overrides:
      end in class Command
    • isFinished

      public boolean isFinished()
      Overrides:
      isFinished in class Command