Class Elbow

All Implemented Interfaces:
edu.wpi.first.networktables.NTSendable, edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Subsystem, SpectrumSubsystem

public class Elbow 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()
    • setupDefaultCommand

      public void setupDefaultCommand()
    • 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()
    • getPositionWithNegative

      public double getPositionWithNegative()
    • belowDegrees

      public Trigger belowDegrees(DoubleSupplier degrees, DoubleSupplier tolerance)
      Overrides:
      belowDegrees in class Mechanism
    • aboveDegrees

      public Trigger aboveDegrees(DoubleSupplier degrees, DoubleSupplier tolerance)
      Overrides:
      aboveDegrees in class Mechanism
    • atDegrees

      public Trigger atDegrees(DoubleSupplier degrees, DoubleSupplier tolerance)
      Overrides:
      atDegrees in class Mechanism
    • zeroElbowRoutine

      public edu.wpi.first.wpilibj2.command.Command zeroElbowRoutine()
    • runHoldElbow

      public edu.wpi.first.wpilibj2.command.Command runHoldElbow()
      Holds the position of the Elbow.
    • 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
    • checkNegative

      public double checkNegative(DoubleSupplier degrees)
    • move

      public edu.wpi.first.wpilibj2.command.Command move(DoubleSupplier shrinkDegrees, DoubleSupplier exDegrees)
    • move

      public edu.wpi.first.wpilibj2.command.Command move(DoubleSupplier degrees)
    • slowMove

      public edu.wpi.first.wpilibj2.command.Command slowMove(DoubleSupplier degrees)
    • groundMove

      public edu.wpi.first.wpilibj2.command.Command groundMove(DoubleSupplier degrees)
    • getIfReversedOffsetInRotations

      public DoubleSupplier getIfReversedOffsetInRotations(DoubleSupplier degrees)
    • getIfReversedDegrees

      public DoubleSupplier getIfReversedDegrees(DoubleSupplier degrees)
    • getOffsetRotations

      public DoubleSupplier getOffsetRotations(DoubleSupplier degrees)
    • moveToMotorPosition

      public edu.wpi.first.wpilibj2.command.Command moveToMotorPosition(DoubleSupplier position)
    • offsetPosition

      public DoubleSupplier offsetPosition(DoubleSupplier position)
    • simulationPeriodic

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

      public Elbow.ElbowConfig getConfig()
    • getSim

      public frc.robot.elbow.Elbow.ElbowSim getSim()