Package frc.robot.commands
Class ShootOnTheMoveCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.ShootOnTheMoveCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class ShootOnTheMoveCommand
extends edu.wpi.first.wpilibj2.command.Command
Overrides the driver's rotational (Theta) control to perfectly track a specific field coordinate
using Velocity-Added Kinematic Leading, while allowing them to freely strafe and sprint in X/Y.
Mathematical Architecture: Replaced entirely by the robust EliteShooterMath engine ported from Team 254. Solves exact Time-of-Flight quadratics and natively outputs required Cowl pitches, Flywheel speeds, and Chassis angular feedforwards.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior -
Constructor Summary
ConstructorsConstructorDescriptionShootOnTheMoveCommand(SwerveDrive swerveDrive, MARSCowl cowl, MARSShooter shooter, DoubleSupplier joystickX, DoubleSupplier joystickY) -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineFor, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withDeadline, withInterruptBehavior, withName, withTimeout, withTimeout
-
Constructor Details
-
ShootOnTheMoveCommand
public ShootOnTheMoveCommand(SwerveDrive swerveDrive, MARSCowl cowl, MARSShooter shooter, DoubleSupplier joystickX, DoubleSupplier joystickY)
-
-
Method Details
-
execute
public void execute()- Overrides:
executein classedu.wpi.first.wpilibj2.command.Command
-
end
public void end(boolean interrupted) - Overrides:
endin classedu.wpi.first.wpilibj2.command.Command
-