Class XScheduler

java.lang.Object
xbot.common.command.XScheduler
All Implemented Interfaces:
AutoCloseable

@Singleton public class XScheduler extends Object implements AutoCloseable
Wrapper for base Scheduler which intelligently manages exceptions.
  • Constructor Details

    • XScheduler

      @Inject public XScheduler()
  • Method Details

    • getNumberOfCrashes

      public int getNumberOfCrashes()
    • run

      public void run()
    • reset

      public void reset()
    • close

      public void close()
      Releases the native alert allocation when this scheduler wrapper will no longer be used.
      Specified by:
      close in interface AutoCloseable
    • getLastException

      public Throwable getLastException()
    • cancelAll

      public void cancelAll()
    • unregisterAllSubsystems

      public void unregisterAllSubsystems()
    • registerSubsystem

      public void registerSubsystem(org.wpilib.command2.Subsystem... subsystems)
    • setDefaultCommand

      public void setDefaultCommand(org.wpilib.command2.Subsystem subsystem, org.wpilib.command2.Command defaultCommand)