Package frc.robot.subsystems.shooter
Class Shooter
java.lang.Object
edu.wpi.first.wpilibj2.command.SubsystemBase
frc.robot.subsystems.shooter.Shooter
Shooter Subsystem
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal frc.robot.subsystems.shooter.ShooterInputsAutoLogged -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRun characterization procedurevoidperiodic()voidsetVelocity(double velocity) Set shooter velocityshoot(double velocity) Shoot at a given velocityshoot(DoubleSupplier velocity) Shoot at a given velocitydoubleGet time since shooter last had a ball pass through.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, register, removeDefaultCommand, run, runEnd, runOnce, setDefaultCommand, simulationPeriodic, startEnd, startRun
-
Field Details
-
inputs
public final frc.robot.subsystems.shooter.ShooterInputsAutoLogged inputs
-
-
Constructor Details
-
Shooter
Shooter Subsystem Constructor- Parameters:
io- Shooter IO implementation
-
-
Method Details
-
periodic
public void periodic() -
timeSinceLastShot
public double timeSinceLastShot()Get time since shooter last had a ball pass through. -
setVelocity
public void setVelocity(double velocity) Set shooter velocity -
shoot
Shoot at a given velocity -
shoot
Shoot at a given velocity -
characterization
Run characterization procedureWARNING: will not respect min/max turret angles. Unplug everything from the turret so it can spin a potentially infinite number of times.
-