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 TypeMethodDescriptiondouble
getAngle()
double
double
edu.wpi.first.wpilibj.smartdashboard.MechanismLigament2d
double
double
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
getDisplacementX
in interfaceMount
-
getDisplacementY
public double getDisplacementY()- Specified by:
getDisplacementY
in interfaceMount
-
getAngle
public double getAngle() -
getMountX
public double getMountX() -
getMountY
public double getMountY() -
getConfig
-
getMountType
- Specified by:
getMountType
in interfaceMount
-