Class PhoenixUtil.TalonFXMotorControllerSim

java.lang.Object
frc.alotobots.util.PhoenixUtil.TalonFXMotorControllerSim
All Implemented Interfaces:
org.ironmaple.simulation.motorsims.SimulatedMotorController
Direct Known Subclasses:
PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
Enclosing class:
PhoenixUtil

public static class PhoenixUtil.TalonFXMotorControllerSim extends Object implements org.ironmaple.simulation.motorsims.SimulatedMotorController
  • Field Details

    • id

      public final int id
  • Constructor Details

    • TalonFXMotorControllerSim

      public TalonFXMotorControllerSim(com.ctre.phoenix6.hardware.TalonFX talonFX, boolean motorInverted)
  • Method Details

    • updateControlSignal

      public Voltage updateControlSignal(Angle mechanismAngle, AngularVelocity mechanismVelocity, Angle encoderAngle, AngularVelocity encoderVelocity)
      Specified by:
      updateControlSignal in interface org.ironmaple.simulation.motorsims.SimulatedMotorController