Class XScheduler
java.lang.Object
xbot.common.command.XScheduler
- All Implemented Interfaces:
AutoCloseable
Wrapper for base Scheduler which intelligently manages exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclose()Releases the native alert allocation when this scheduler wrapper will no longer be used.intvoidregisterSubsystem(org.wpilib.command2.Subsystem... subsystems) voidreset()voidrun()voidsetDefaultCommand(org.wpilib.command2.Subsystem subsystem, org.wpilib.command2.Command defaultCommand) void
-
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:
closein interfaceAutoCloseable
-
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)
-