Package frc.robot.commands.arm
Class MoveArm
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.arm.MoveArm
- All Implemented Interfaces:
Sendable
This command will move the arm to a requested angle.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
Command.InterruptionBehavior -
Field Summary
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, execute, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initSendable, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Constructor Details
-
MoveArm
Requirements for the command.- Parameters:
arm- Arm subsystem.armAngle- Angle at which the arm should move to.
-
MoveArm
Requirements for the command.- Parameters:
arm- Arm subsystem.positionSupplier- Supplier of ArmPosition
-
-
Method Details
-
initialize
public void initialize()- Overrides:
initializein classCommand
-
end
public void end(boolean interrupted) -
isFinished
public boolean isFinished()- Overrides:
isFinishedin classCommand
-