Package frc.robot.commands
Class MechanismCommands
java.lang.Object
frc.robot.commands.MechanismCommands
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic edu.wpi.first.wpilibj2.command.Command
AutonomousPrepareShoot
(Arm arm, Head head, Supplier<Double> distance) static edu.wpi.first.wpilibj2.command.Command
AutonomousShoot
(Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position) static edu.wpi.first.wpilibj2.command.Command
AutonomousShoot
(Arm arm, Head head, Drivetrain drivetrain) static edu.wpi.first.wpilibj2.command.Command
AutoStowAndStopIntake
(Arm arm, Head head) 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 intakenstatic edu.wpi.first.wpilibj2.command.Command
IntakeGround
(Arm arm, Head head, boolean stopShooter) will finish after piece has been intakenstatic 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 intakenstatic edu.wpi.first.wpilibj2.command.Command
IntakeSource
(Arm arm, Head head) will finish after piece has been intakenstatic edu.wpi.first.wpilibj2.command.Command
PrepareShoot
(edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position) will finish when readystatic edu.wpi.first.wpilibj2.command.Command
PrepareShoot
(edu.wpi.first.wpilibj.XboxController operatorController, Arm arm, Head head, Supplier<Double> distance) will finish when readystatic edu.wpi.first.wpilibj2.command.Command
PrepareShoot
(Arm arm, Head head, Constants.ShootingConstants.ShootingPosition position) will finish when readystatic edu.wpi.first.wpilibj2.command.Command
PrepareShoot
(Arm arm, Head head, Supplier<Double> distance) will finish when readystatic 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 shotstatic edu.wpi.first.wpilibj2.command.Command
will finish after piece has been shotstatic edu.wpi.first.wpilibj2.command.Command
static edu.wpi.first.wpilibj2.command.Command
StowStopIntakeAndShooter
(Arm arm, Head head) cancel shoot and intake and stow
-
Constructor Details
-
MechanismCommands
public MechanismCommands()
-
-
Method Details
-
IntakeSource
will finish after piece has been intaken- Parameters:
arm
- subsystemhead
- 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 hapticsoperatorController
- for hapticsarm
- subsystemhead
- 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
- subsystemhead
- 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 hapticsoperatorController
- for hapticsarm
- subsystemhead
- subsystem- Returns:
- Command
-
StowStopIntakeAndShooter
cancel shoot and intake and stow- Parameters:
arm
- subsystemhead
- subsystem- Returns:
-
AutoStowAndStopIntake
-
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
-
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
will finish after piece has been shot- Parameters:
arm
- subsystemhead
- subsystem- Returns:
- Command
-
Shoot
-
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 hapticsoperatorController
- for hapticsarm
- subsystemhead
- subsystem- Returns:
- Command
-