Class Shooter
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
com.stuypulse.robot.subsystems.shooter.Shooter
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable,edu.wpi.first.wpilibj2.command.Subsystem
- Direct Known Subclasses:
ShooterImpl,ShooterSim
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the different possible states of the shooter. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static edu.wpi.first.units.measure.AngularVelocityprivate static final Shooterprivate Shooter.ShooterState -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToBonusVelocity(double velocity) abstract edu.wpi.first.units.measure.AngularVelocitystatic Shooterabstract edu.wpi.first.wpilibj2.command.sysid.SysIdRoutinegetState()voidvoidperiodic()voidvoidsetState(Shooter.ShooterState state) abstract voidsetVoltageOverride(edu.wpi.first.units.measure.Voltage voltage) booleanprotected abstract voidMethods 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
-
instance
-
bonusVelocity
-
state
-
-
Constructor Details
-
Shooter
protected Shooter()
-
-
Method Details
-
getInstance
-
setState
-
getState
-
logMotor
-
addToBonusVelocity
-
resetBonusVelocity
-
getCurrentAngularVelocity
-
stopMotors
-
getShooterSysIdRoutine
-
setVoltageOverride
-
shooterSpunUp
-
periodic
-