Package com.marswars.util
Class PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
java.lang.Object
com.marswars.util.PhoenixUtil.TalonFXMotorControllerSim
com.marswars.util.PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
- All Implemented Interfaces:
SimulatedMotorController
- Enclosing class:
- PhoenixUtil
public static class PhoenixUtil.TalonFXMotorControllerWithRemoteCancoderSim
extends PhoenixUtil.TalonFXMotorControllerSim
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ironmaple.simulation.motorsims.SimulatedMotorController
SimulatedMotorController.GenericMotorController -
Field Summary
Fields inherited from class com.marswars.util.PhoenixUtil.TalonFXMotorControllerSim
id -
Constructor Summary
ConstructorsConstructorDescriptionTalonFXMotorControllerWithRemoteCancoderSim(TalonFX talonFX, CANcoder cancoder) Creates a simulated motor controller for a TalonFX motor with a remote CANcoder. -
Method Summary
Modifier and TypeMethodDescriptionupdateControlSignal(Angle mechanismAngle, AngularVelocity mechanismVelocity, Angle encoderAngle, AngularVelocity encoderVelocity)
-
Constructor Details
-
TalonFXMotorControllerWithRemoteCancoderSim
Creates a simulated motor controller for a TalonFX motor with a remote CANcoder.- Parameters:
talonFX- the TalonFX motor to simulatecancoder- the CANcoder to use for remote sensing
-
-
Method Details
-
updateControlSignal
public Voltage updateControlSignal(Angle mechanismAngle, AngularVelocity mechanismVelocity, Angle encoderAngle, AngularVelocity encoderVelocity) - Specified by:
updateControlSignalin interfaceSimulatedMotorController- Overrides:
updateControlSignalin classPhoenixUtil.TalonFXMotorControllerSim
-