Package frc.lib5k.components.motors
Class TalonHelper
- java.lang.Object
-
- frc.lib5k.components.motors.TalonHelper
-
public class TalonHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TalonHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
configCurrentLimit(com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX talon, int threshold, int hold, int duration, int timeout)
Configure a WPI_TalonSRX current limiting
-
-
-
Method Detail
-
configCurrentLimit
public static void configCurrentLimit(com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX talon, int threshold, int hold, int duration, int timeout)
Configure a WPI_TalonSRX current limiting- Parameters:
talon
- Talon to configurethreshold
- Threshold to trigger limithold
- Amperage to hold the controller at while limitingduration
- How long the value must pass the threshold to be limitedtimeout
- CAN timeout (can be 0)
-
-