Package frc.robot.subsystems.Arm
Class Claw
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.Arm.Claw
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
public class Claw
extends edu.wpi.first.wpilibj2.command.SubsystemBase
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal edu.wpi.first.wpilibj2.command.button.Triggerfinal BooleanSupplierfinal BooleanSupplierfinal DoubleSupplierfinal DoubleSupplier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.Commandcom.revrobotics.REVLibErrorconfigureAll(com.revrobotics.spark.config.SparkMaxConfig rollerLeftConfig, com.revrobotics.spark.config.SparkMaxConfig rollerRightConfig) edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandvoidperiodic()edu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.Commandedu.wpi.first.wpilibj2.command.CommandTo stop rollers, callstopRollersCommand()insteadvoidedu.wpi.first.wpilibj2.command.CommandMethods inherited from class edu.wpi.first.wpilibj2.command.SubsystemBase
addChild, getName, getSubsystem, initSendable, setName, setSubsystemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.wpilibj2.command.Subsystem
defer, getCurrentCommand, getDefaultCommand, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, startEnd, startRun
-
Field Details
-
beamBreak
public final edu.wpi.first.wpilibj2.command.button.Trigger beamBreak -
isOpen
-
isClosed
-
rollerOutput
-
totalCurrentDraw
-
-
Constructor Details
-
Claw
public Claw()
-
-
Method Details
-
configureAll
public com.revrobotics.REVLibError configureAll(com.revrobotics.spark.config.SparkMaxConfig rollerLeftConfig, com.revrobotics.spark.config.SparkMaxConfig rollerRightConfig) -
prepareForCubeCommand
public edu.wpi.first.wpilibj2.command.Command prepareForCubeCommand() -
prepareForConeCommand
public edu.wpi.first.wpilibj2.command.Command prepareForConeCommand() -
receiveCubeCommand
public edu.wpi.first.wpilibj2.command.Command receiveCubeCommand() -
holdCubeCommand
public edu.wpi.first.wpilibj2.command.Command holdCubeCommand() -
receiveConeCommand
public edu.wpi.first.wpilibj2.command.Command receiveConeCommand() -
holdConeCommand
public edu.wpi.first.wpilibj2.command.Command holdConeCommand() -
ejectCubeCommand
public edu.wpi.first.wpilibj2.command.Command ejectCubeCommand() -
ejectConeCommand
public edu.wpi.first.wpilibj2.command.Command ejectConeCommand() -
openClawCommand
public edu.wpi.first.wpilibj2.command.Command openClawCommand() -
closeClawCommand
public edu.wpi.first.wpilibj2.command.Command closeClawCommand() -
setRollerSpeedCommand
To stop rollers, callstopRollersCommand()instead -
stopRollersCommand
public edu.wpi.first.wpilibj2.command.Command stopRollersCommand() -
idleCommand
public edu.wpi.first.wpilibj2.command.Command idleCommand() -
periodic
public void periodic() -
simulationPeriodic
public void simulationPeriodic()
-