Class IntakeSim
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.intake.Intake
com.stuypulse.robot.subsystems.intake.IntakeSim
- 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.sysid.SysIdRoutineedu.wpi.first.math.geometry.Rotation2ddoublevoidperiodic()voidsetPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) voidvoidprotected voidMethods inherited from class com.stuypulse.robot.subsystems.intake.Intake
atTargetAngle, getInstance, getState, isPivotAboveThreshold, setStateMethods 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
-
Constructor Details
-
IntakeSim
public IntakeSim()
-
-
Method Details
-
getRelativePosition
public edu.wpi.first.math.geometry.Rotation2d getRelativePosition()- Specified by:
getRelativePositionin classIntake
-
setPivotZero
public void setPivotZero()- Specified by:
setPivotZeroin classIntake
-
setPivotZeroAtBottom
public void setPivotZeroAtBottom()- Specified by:
setPivotZeroAtBottomin classIntake
-
getRollerRPM
public double getRollerRPM()- Specified by:
getRollerRPMin classIntake
-
stopMotors
protected void stopMotors()- Specified by:
stopMotorsin classIntake
-
setPivotVoltageOverride
public void setPivotVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) - Specified by:
setPivotVoltageOverridein classIntake
-
periodic
public void periodic() -
getIntakeSysIdRoutine
public edu.wpi.first.wpilibj2.command.sysid.SysIdRoutine getIntakeSysIdRoutine()- Specified by:
getIntakeSysIdRoutinein classIntake
-