Class MechanismCommands

java.lang.Object
frc.robot.commands.MechanismCommands

public class MechanismCommands extends Object
  • Constructor Details

    • MechanismCommands

      public MechanismCommands()
  • Method Details

    • IntakeSource

      public static edu.wpi.first.wpilibj2.command.Command IntakeSource(Arm arm, Head head)
      will finish after piece has been intaken
      Parameters:
      arm - subsystem
      head - subsystem
      Returns:
      Command
    • IntakeSource

      public static edu.wpi.first.wpilibj2.command.Command IntakeSource(edu.wpi.first.wpilibj.XboxController driverController, edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head)
      will finish after piece has been intaken
      Parameters:
      driverController - for haptics
      operatorController - for haptics
      arm - subsystem
      head - subsystem
      Returns:
      Command
    • IntakeGround

      public static edu.wpi.first.wpilibj2.command.Command IntakeGround(Arm arm, Head head, boolean stopShooter)
      will finish after piece has been intaken
      Parameters:
      arm - subsystem
      head - subsystem
      Returns:
      Command
    • IntakeGround

      public static edu.wpi.first.wpilibj2.command.Command IntakeGround(edu.wpi.first.wpilibj.XboxController driverController, edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head)
      will finish after piece has been intaken
      Parameters:
      driverController - for haptics
      operatorController - for haptics
      arm - subsystem
      head - subsystem
      Returns:
      Command
    • StowStopIntakeAndShooter

      public static edu.wpi.first.wpilibj2.command.Command StowStopIntakeAndShooter(Arm arm, Head head)
      cancel shoot and intake and stow
      Parameters:
      arm - subsystem
      head - subsystem
      Returns:
    • AutoStowAndStopIntake

      public static edu.wpi.first.wpilibj2.command.Command AutoStowAndStopIntake(Arm arm, Head head)
    • PrepareShoot

      public static edu.wpi.first.wpilibj2.command.Command PrepareShoot(Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position)
      will finish when ready
      Parameters:
      arm -
      head -
      position -
    • PrepareShoot

      public static edu.wpi.first.wpilibj2.command.Command PrepareShoot(Arm arm, Head head, Supplier<Double> distance)
      will finish when ready
      Parameters:
      arm -
      head -
      distance -
    • AutonomousPrepareShoot

      public static edu.wpi.first.wpilibj2.command.Command AutonomousPrepareShoot(Arm arm, Head head, Supplier<Double> distance)
    • PrepareShoot

      public static edu.wpi.first.wpilibj2.command.Command PrepareShoot(edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position)
      will finish when ready
      Parameters:
      operatorController -
      arm -
      head -
      position -
      Returns:
    • PrepareShoot

      public static edu.wpi.first.wpilibj2.command.Command PrepareShoot(edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head, Supplier<Double> distance)
      will finish when ready
      Parameters:
      operatorController -
      arm -
      head -
      distance -
      Returns:
    • Shoot

      public static edu.wpi.first.wpilibj2.command.Command Shoot(Arm arm, Head head)
      will finish after piece has been shot
      Parameters:
      arm - subsystem
      head - subsystem
      Returns:
      Command
    • Shoot

      public static edu.wpi.first.wpilibj2.command.Command Shoot(Arm arm, Head head, boolean stopShooter)
    • AutonomousShoot

      public static edu.wpi.first.wpilibj2.command.Command AutonomousShoot(Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position)
    • AutonomousShoot

      public static edu.wpi.first.wpilibj2.command.Command AutonomousShoot(Arm arm, Head head, Drivetrain drivetrain)
    • Shoot

      public static edu.wpi.first.wpilibj2.command.Command Shoot(edu.wpi.first.wpilibj.XboxController driverController, edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head)
      will finish after piece has been shot
      Parameters:
      driverController - for haptics
      operatorController - for haptics
      arm - subsystem
      head - subsystem
      Returns:
      Command