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 -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.ctre.phoenix6.controls.Followerprivate final com.ctre.phoenix6.controls.PositionTorqueCurrentFOCprivate final TalonFXSimulationprivate final edu.wpi.first.wpilibj.simulation.SingleJointedArmSimprivate Optional<edu.wpi.first.units.measure.Voltage>private final com.ctre.phoenix6.controls.DutyCycleOutprivate final TalonFXSimulationprivate final TalonFXSimulationprivate final edu.wpi.first.wpilibj.simulation.DCMotorSimprivate edu.wpi.first.math.geometry.Rotation2d -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionedu.wpi.first.wpilibj2.command.sysid.SysIdRoutineedu.wpi.first.units.measure.Angleedu.wpi.first.units.measure.AngularVelocitybooleanvoidperiodic()voidseedPivotAngle(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
-
pivotSim
-
pivotMotor
-
pivotController
-
rollerMotorLeft
-
rollerMotorRight
-
rollerSim
-
rollerController
-
followerController
-
pivotVoltageOverride
-
zeroOffset
-
-
Constructor Details
-
IntakeSim
public IntakeSim()
-
-
Method Details
-
limitSwitchHit
- Specified by:
limitSwitchHitin classIntake
-
getRelativePosition
- Specified by:
getRelativePositionin classIntake
-
seedPivotAngle
- Specified by:
seedPivotAnglein classIntake
-
getRollerVelocity
- Specified by:
getRollerVelocityin classIntake
-
stopRollerMotors
- Specified by:
stopRollerMotorsin classIntake
-
stopPivotMotor
- Specified by:
stopPivotMotorin classIntake
-
setPivotVoltageOverride
- Specified by:
setPivotVoltageOverridein classIntake
-
periodic
-
getIntakeSysIdRoutine
- Specified by:
getIntakeSysIdRoutinein classIntake
-