Class CooldownWarning


public class CooldownWarning extends Object
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 Details

    • CooldownWarning

      public CooldownWarning(String warning, double thresholdSeconds, int thresholdCount)
      warning - The warning to report to the driverstation
      thresholdSeconds - Maximum number of seconds that need to pass between the first and last calls
      thresholdCount - Number of calls that must pass within thresholdSeconds to trigger the warning
  • Method Details

    • feed

      public void feed()
      Feed the CooldownError.