Class RotationalPivot

java.lang.Object
frc.spectrumLib.mechanism.Mechanism
frc.robot.turretRotationalPivot.RotationalPivot
All Implemented Interfaces:
edu.wpi.first.networktables.NTSendable, edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem, SpectrumSubsystem

public class RotationalPivot extends Mechanism
  • Constructor Details

  • Method Details

    • periodic

      public void periodic()
      Specified by:
      periodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      periodic in class Mechanism
    • setupStates

      public void setupStates()
      Description copied from interface: SpectrumSubsystem
      Set up the states and triggers for this subsystem. This is typically used to bind commands to SpectrumState triggers.
    • setupDefaultCommand

      public void setupDefaultCommand()
      Description copied from interface: SpectrumSubsystem
      Set up the default command for this subsystem. This command will run when no other command is using this subsystem.
    • initSendable

      public void initSendable(edu.wpi.first.networktables.NTSendableBuilder builder)
      Specified by:
      initSendable in interface edu.wpi.first.networktables.NTSendable
      Overrides:
      initSendable in class Mechanism
    • resetToInitialPos

      public edu.wpi.first.wpilibj2.command.Command resetToInitialPos()
    • aimFieldRelative

      public void aimFieldRelative(edu.wpi.first.math.geometry.Rotation2d fieldAngle, double goalVelocity)
    • trackTargetCommand

      public edu.wpi.first.wpilibj2.command.Command trackTargetCommand()
    • runHoldTurret

      public edu.wpi.first.wpilibj2.command.Command runHoldTurret()
      Holds the position of the Turret.
    • moveToDegrees

      public edu.wpi.first.wpilibj2.command.Command moveToDegrees(DoubleSupplier degrees)
      Description copied from class: Mechanism
      Move to the specified position.
      Overrides:
      moveToDegrees in class Mechanism
      Parameters:
      degrees - position in degrees
    • atDegrees

      public Trigger atDegrees(DoubleSupplier target, DoubleSupplier tolerance)
      Overrides:
      atDegrees in class Mechanism
    • aimingAtTarget

      public Trigger aimingAtTarget()
    • simulationPeriodic

      public void simulationPeriodic()
      Specified by:
      simulationPeriodic in interface edu.wpi.first.wpilibj2.command.Subsystem
      Overrides:
      simulationPeriodic in class Mechanism
    • getConfig

    • getSim

      public frc.robot.turretRotationalPivot.RotationalPivot.RotationalPivotSim getSim()