Package frc.robot.subsystems.intake
Class IntakeShoulder
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.intake.IntakeShoulder
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for motor which raises and lowers intakes with associated configurations, sets up Motion Magic, and configures gear ratios. -
Method Summary
Modifier and TypeMethodDescriptionbooleanMethod which checks angle of motor using Phoenix and WPILib commands.Command which lowers shoulder of intakeCommand which calls lowerToDepot method.nudgeIntakeCommand(Supplier<Double> nudgeAmount) Nudges the intake setpoint by a certain amount.Command which raises shoulder of intakeCommand which raises shoulder of intake slowlyCommand which calls stowOverBumper method.Methods 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, idle, periodic, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Constructor Details
-
IntakeShoulder
public IntakeShoulder()Constructor for motor which raises and lowers intakes with associated configurations, sets up Motion Magic, and configures gear ratios.
-
-
Method Details
-
raiseIntakeCommand
Command which raises shoulder of intake- Returns:
- runOnce(() -> raiseIntake());
-
raiseIntakeSlowCommand
Command which raises shoulder of intake slowly- Returns:
- runOnce(() -> raiseIntakeSlow());
-
lowerIntakeCommand
Command which lowers shoulder of intake- Returns:
- runOnce(() - > lowerIntake());
-
lowerToDepotCommand
Command which calls lowerToDepot method.- Returns:
- runOnce(() -> lowerToDepot());
-
stowOverBumperCommand
Command which calls stowOverBumper method.- Returns:
- runOnce(() -> stowOverBumper());
-
getIsAtTarget
public boolean getIsAtTarget()Method which checks angle of motor using Phoenix and WPILib commands.- Returns:
- boolean indicating if motor position is within tolerance to angle
-
nudgeIntakeCommand
Nudges the intake setpoint by a certain amount.- Parameters:
nudgeAmount- The amount to nudge by.- Returns:
- Command to run.
-