Package com.reduxrobotics.canand
Class CooldownWarning
java.lang.Object
com.reduxrobotics.canand.CooldownWarning
Class that yells at the user if
feed()
is called too often in too short a succession.
Typically used to help prevent obliterating flash.-
Constructor Summary
ConstructorDescriptionCooldownWarning
(String warning, double thresholdSeconds, int thresholdCount) Constructor. -
Method Summary
-
Constructor Details
-
CooldownWarning
Constructor.- Parameters:
warning
- The warning to report to the driverstationthresholdSeconds
- Maximum number of seconds that need to pass between the first and last callsthresholdCount
- Number of calls that must pass within thresholdSeconds to trigger the warning
-
-
Method Details
-
feed
public void feed()Feed the CooldownError.
-