Package frc.spectrumLib.sim
Class LinearSim
java.lang.Object
frc.spectrumLib.sim.LinearSim
-
Nested Class Summary
Nested classes/interfaces inherited from interface frc.spectrumLib.sim.Mount
Mount.MountType -
Constructor Summary
ConstructorsConstructorDescriptionLinearSim(LinearConfig config, edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech, com.ctre.phoenix6.sim.TalonFXSimState linearMotorSim, String name) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAngle()doubledoubleedu.wpi.first.wpilibj.smartdashboard.MechanismLigament2ddoubledoublevoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface frc.spectrumLib.sim.Mountable
getUpdatedX, getUpdatedX, getUpdatedX, getUpdatedX, getUpdatedY, getUpdatedY, getUpdatedY, getUpdatedY
-
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:
getDisplacementXin interfaceMount
-
getDisplacementY
public double getDisplacementY()- Specified by:
getDisplacementYin interfaceMount
-
getAngle
public double getAngle() -
getMountX
public double getMountX() -
getMountY
public double getMountY() -
getConfig
-
getMountType
- Specified by:
getMountTypein interfaceMount
-