Class Twist

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

public class Twist 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()
    • runHoldTwist

      public edu.wpi.first.wpilibj2.command.Command runHoldTwist()
      Holds the position of the Twist.
    • 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
    • move

      public edu.wpi.first.wpilibj2.command.Command move(DoubleSupplier targetDegrees, boolean clockwise)
    • moveAwayFromElevatorCheckReverse

      public edu.wpi.first.wpilibj2.command.Command moveAwayFromElevatorCheckReverse(DoubleSupplier degrees)
    • moveAwayFromElevator

      public edu.wpi.first.wpilibj2.command.Command moveAwayFromElevator(DoubleSupplier degrees)
    • moveAwayFromElevatorReversed

      public edu.wpi.first.wpilibj2.command.Command moveAwayFromElevatorReversed(DoubleSupplier degrees)
    • homeAwayFromElevator

      public edu.wpi.first.wpilibj2.command.Command homeAwayFromElevator(DoubleSupplier degrees)
    • moveAwayFromBranchCheckReversed

      public edu.wpi.first.wpilibj2.command.Command moveAwayFromBranchCheckReversed(DoubleSupplier degrees)
    • netTurretDegrees

      public double netTurretDegrees()
    • netTurret

      public edu.wpi.first.wpilibj2.command.Command netTurret()
    • netTurretClockwise

      public Boolean netTurretClockwise()
    • adjustTargetToReverse

      public double adjustTargetToReverse(DoubleSupplier degrees)
    • getIfReversedDegrees

      public DoubleSupplier getIfReversedDegrees(DoubleSupplier degrees)
    • twistHome

      public edu.wpi.first.wpilibj2.command.Command twistHome()
    • atDegrees

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

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

      public Twist.TwistConfig getConfig()
    • getSim

      public frc.robot.twist.TwistSim getSim()