Package frc.spectrumLib.hardware
Class TalonFXFactory
java.lang.Object
frc.spectrumLib.hardware.TalonFXFactory
Builds TalonFX objects and applies the Spectrum defaults. Closed-loop and sensor parameters are
left for the application to set.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TalonFXcreateConfigTalon(CanDeviceId id, TalonFXConfiguration config) static TalonFXstatic TalonFXcreatePermanentFollowerTalon(CanDeviceId followerId, TalonFX leaderTalonFX, MotorAlignmentValue motorAlignment) Builds a motor that mirrors the leader's output.static TalonFXConfiguration
-
Method Details
-
createDefaultTalon
-
createConfigTalon
-
createPermanentFollowerTalon
public static TalonFX createPermanentFollowerTalon(CanDeviceId followerId, TalonFX leaderTalonFX, MotorAlignmentValue motorAlignment) Builds a motor that mirrors the leader's output.- Parameters:
motorAlignment-MotorAlignmentValue.Alignedfor a follower mounted the same way round as the leader,MotorAlignmentValue.Opposedfor one mounted backwards
-
getDefaultConfig
-