Package frc.robot.subsystems
Class WristIntake
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.WristIntake
Creates the subsystem for the wrist intake.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetVoltageSpike(boolean passedTime) voidintake()voidpanic()Releases GPs in intake (if any).voidperiodic()voidsetInvert(boolean invert) voidsetMotor(double power) Set power of intake motorsvoidsetMotorRaw(double power) Set power of intake motors ignoring directionMethods 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, simulationPeriodic, startEnd
-
Constructor Details
-
WristIntake
public WristIntake()Create Wrist Intake Subsystem
-
-
Method Details
-
periodic
public void periodic() -
intake
public void intake() -
setMotor
public void setMotor(double power) Set power of intake motors- Parameters:
power- power of motors from -1 to 1
-
setMotorRaw
public void setMotorRaw(double power) Set power of intake motors ignoring direction- Parameters:
power- power of motors from -1 to 1
-
panic
public void panic()Releases GPs in intake (if any). Primarily used to prevent the accidental holding of multiple GPs penalty. -
getVoltageSpike
public boolean getVoltageSpike(boolean passedTime) -
setInvert
public void setInvert(boolean invert)
-