Class ThunderAutoModeCommand

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

public class ThunderAutoModeCommand extends Command
A command that executes a ThunderAuto Auto Mode.
  • Constructor Details

    • ThunderAutoModeCommand

      public ThunderAutoModeCommand(String autoModeName, ThunderAutoProject project, ThunderTrajectoryRunnerProperties properties)
      Constructs a ThunderAutoModeCommand.
      Parameters:
      autoModeName - The name of the auto mode to follow.
      project - The ThunderAutoProject that contains the auto mode and all referenced trajectories, actions, and conditions.
      properties - The ThunderTrajectoryRunnerProperties to use for following trajectories.
  • Method Details

    • isValid

      public boolean isValid()
      Checks if the command has a valid auto mode 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