Class ShootingSource

java.lang.Object
frc.robot.superstructure.sources.ShootingSource
All Implemented Interfaces:
Supplier<Optional<ShooterValues>>
Direct Known Subclasses:
ShootFromAnywhereInterpolatedSource, ShootFromAnywhereSource, ShootingSourceConstant, ShootingSourceIdle

public abstract class ShootingSource extends Object implements Supplier<Optional<ShooterValues>>
A source of values for the shooter.

This provides a nice way to keep track of different places the shooter can source its values.

  • Field Details

    • name

      public final String name
      The name of the shooting source. This is mainly used for driver feedback.
  • Constructor Details

    • ShootingSource

      public ShootingSource(String name)
      Creates a new ShootingSource.
      Parameters:
      name - The name of the shooting source.
  • Method Details

    • getName

      public String getName()
      Gets the name of the shooting source.