Class Arm

All Implemented Interfaces:
Sendable, Subsystem

public class Arm extends SubsystemBase
Creates the subsystem for the arm.
  • Field Details

    • armSense

      public DigitalInput armSense
    • wristMotor

      public final com.revrobotics.CANSparkMax wristMotor
  • Constructor Details

  • Method Details

    • adjust

      public void adjust(double amount)
    • periodic

      public void periodic()
    • getArmAngle

      public double getArmAngle()
      Get angle of arm in degrees with a crossover outside of the configuration space
    • getArmAngleRad

      public double getArmAngleRad()
      Get angle of arm in radians with a crossover outside of the configuration space
    • getWristAngle

      public double getWristAngle()
      Get angle of wrist in degrees with a crossover outside of the configuration space
    • getWristAngleRad

      public double getWristAngleRad()
      Get angle of wrist in radians with a crossover outside of the configuration space
    • setArmGoal

      public void setArmGoal(double goal)
      Set setpoint for arm angle in degrees
    • setWristGoal

      public void setWristGoal(double goal)
      Set setpoint for wrist angle in degrees
    • armInPosition

      public boolean armInPosition()
      Get if arm angle is close to the setpoint
    • wristInPosition

      public boolean wristInPosition()
      Get if wrist angle is close to the setpoint
    • extendArm

      public void extendArm()
      Set arm to extended position
    • retractArm

      public void retractArm()
      Set arm to retracted position
    • setCoastMode

      public void setCoastMode()
      Set motors to coast mode
    • setBrakeMode

      public void setBrakeMode()
      Set motors to brake mode