Class LinearSim

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

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

    • LinearSim

      public LinearSim(LinearConfig config, edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech, com.ctre.phoenix6.sim.TalonFXSimState linearMotorSim, String name)
  • Method Details

    • getElevatorMech2d

      public edu.wpi.first.wpilibj.smartdashboard.MechanismLigament2d getElevatorMech2d()
    • simulationPeriodic

      public void simulationPeriodic()
    • 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 LinearConfig getConfig()
    • getMountType

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