Class IntakeImpl
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.intake.Intake
com.stuypulse.robot.subsystems.intake.IntakeImpl
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stuypulse.robot.subsystems.intake.Intake
Intake.IntakeState -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.ctre.phoenix6.controls.Followerprivate final com.ctre.phoenix6.controls.VoltageOutprivate final edu.wpi.first.math.filter.Debouncerprivate final BooleanSupplierprivate final edu.wpi.first.wpilibj.DigitalInputprivate final com.ctre.phoenix6.hardware.TalonFXprivate final LoggedSignalsprivate final BooleanSupplierprivate Optional<edu.wpi.first.units.measure.Voltage>private final com.ctre.phoenix6.controls.PositionTorqueCurrentFOCprivate final com.ctre.phoenix6.controls.TorqueCurrentFOCprivate final edu.wpi.first.math.filter.Debouncerprivate final BooleanSupplierprivate final com.ctre.phoenix6.controls.DutyCycleOutprivate final com.ctre.phoenix6.hardware.TalonFXprivate final com.ctre.phoenix6.hardware.TalonFXprivate final LoggedSignals -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.sysid.SysIdRoutineprivate booleanprivate com.ctre.phoenix6.controls.ControlRequestgetPivotControl(Intake.IntakeState currentState) edu.wpi.first.units.measure.Angleprivate booleanedu.wpi.first.units.measure.AngularVelocitybooleanvoidperiodic()private booleanvoidseedPivotAngle(edu.wpi.first.units.measure.Angle angle) voidsetPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) protected voidprotected voidMethods inherited from class com.stuypulse.robot.subsystems.intake.Intake
atTargetAngle, getInstance, getState, isPivotAboveThreshold, setState, stopAllMotorsMethods 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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
pivotLimitSwitch
-
pivotMotor
-
rollerMotorLeft
-
rollerMotorRight
-
positionController
-
homingController
-
pushdownController
-
rollerController
-
followerController
-
pivotSignals
-
rollerSignals
-
pivotStalling
-
leftRollerStalling
-
rightRollerStalling
-
pivotVoltageOverride
-
leftRollerDebouncer
-
rightRollerDebouncer
-
-
Constructor Details
-
IntakeImpl
public IntakeImpl()
-
-
Method Details
-
setPivotVoltageOverride
- Specified by:
setPivotVoltageOverridein classIntake
-
limitSwitchHit
- Specified by:
limitSwitchHitin classIntake
-
getRelativePosition
- Specified by:
getRelativePositionin classIntake
-
seedPivotAngle
- Specified by:
seedPivotAnglein classIntake
-
pivotStalling
-
getRollerVelocity
- Specified by:
getRollerVelocityin classIntake
-
getLeftRollerStalling
-
getRightRollerStalling
-
stopRollerMotors
- Specified by:
stopRollerMotorsin classIntake
-
stopPivotMotor
- Specified by:
stopPivotMotorin classIntake
-
getPivotControl
-
periodic
-
getIntakeSysIdRoutine
- Specified by:
getIntakeSysIdRoutinein classIntake
-