Class ArmSim

java.lang.Object
frc.spectrumLib.sim.ArmSim
All Implemented Interfaces:
Mount, Mountable

public class ArmSim extends Object implements Mount, Mountable
  • Constructor Details

    • ArmSim

      public ArmSim(ArmConfig config, edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech, com.ctre.phoenix6.sim.TalonFXSimState armMotorSim, String name)
  • Method Details

    • simulationPeriodic

      public void simulationPeriodic()
    • getAngleRads

      public double getAngleRads()
    • getDisplacementX

      public double getDisplacementX()
      Specified by:
      getDisplacementX in interface Mount
    • getDisplacementY

      public double getDisplacementY()
      Specified by:
      getDisplacementY in interface Mount
    • getAngle

      public double getAngle()
      Specified by:
      getAngle in interface Mount
    • getMountX

      public double getMountX()
      Specified by:
      getMountX in interface Mount
    • getMountY

      public double getMountY()
      Specified by:
      getMountY in interface Mount
    • getConfig

      public ArmConfig getConfig()
    • getMountType

      public Mount.MountType getMountType()
      Specified by:
      getMountType in interface Mount