Class CurrentLimitManager
- java.lang.Object
-
- io.github.frc5024.lib5k.hardware.common.pdp.CurrentLimitManager
-
public class CurrentLimitManager extends java.lang.Object
A class for running current limits
-
-
Constructor Summary
Constructors Constructor Description CurrentLimitManager(PowerDistributionPanel pdp)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addCurrentLimit(CurrentLimit currentLimit)
void
performCurrentLimits()
Runs the current limit for all active current limitstatic void
removeCurrentLimit(CurrentLimit currentLimit)
-
-
-
Constructor Detail
-
CurrentLimitManager
public CurrentLimitManager(PowerDistributionPanel pdp)
- Parameters:
pdp
- the robot pdp
-
-
Method Detail
-
addCurrentLimit
public static void addCurrentLimit(CurrentLimit currentLimit)
- Parameters:
currentLimit
- adds a current limit to the active list
-
removeCurrentLimit
public static void removeCurrentLimit(CurrentLimit currentLimit)
- Parameters:
currentLimit
- removes a current limit to the active list
-
performCurrentLimits
public void performCurrentLimits()
Runs the current limit for all active current limit
-
-