Class CommandScheduler
Inheritance
CommandScheduler
Assembly: WPILibSharp.NewCommands.dll
Syntax
public sealed class CommandScheduler : object, ISendable, IDisposable
Properties
|
Improve this Doc
View Source
Instance
Declaration
public static CommandScheduler Instance { get; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public void AddButton(Action button)
Parameters
Type |
Name |
Description |
Action |
button |
|
|
Improve this Doc
View Source
Cancel(ICommand[])
Declaration
public void Cancel(params ICommand[] commands)
Parameters
Type |
Name |
Description |
ICommand[] |
commands |
|
|
Improve this Doc
View Source
CancelAll()
Declaration
|
Improve this Doc
View Source
Declaration
public void ClearButtons()
|
Improve this Doc
View Source
Disable()
Declaration
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
Enable()
Declaration
|
Improve this Doc
View Source
GetDefaultCommand(ISubsystem)
Declaration
public ICommand GetDefaultCommand(ISubsystem subsystem)
Parameters
Returns
|
Improve this Doc
View Source
IsScheduled(ICommand[])
Declaration
public bool IsScheduled(params ICommand[] commands)
Parameters
Type |
Name |
Description |
ICommand[] |
commands |
|
Returns
|
Improve this Doc
View Source
RegisterSubsystem(ISubsystem[])
Declaration
public void RegisterSubsystem(params ISubsystem[] subsystems)
Parameters
|
Improve this Doc
View Source
Requiring(ISubsystem)
Declaration
public ICommand Requiring(ISubsystem subsystem)
Parameters
Returns
|
Improve this Doc
View Source
Run()
Declaration
|
Improve this Doc
View Source
Schedule(Boolean, ICommand[])
Declaration
public void Schedule(bool interruptible, params ICommand[] commands)
Parameters
|
Improve this Doc
View Source
Schedule(ICommand[])
Declaration
public void Schedule(params ICommand[] commands)
Parameters
Type |
Name |
Description |
ICommand[] |
commands |
|
|
Improve this Doc
View Source
SetDefaultCommand(ISubsystem, ICommand)
Declaration
public void SetDefaultCommand(ISubsystem subsystem, ICommand defaultCommand)
Parameters
|
Improve this Doc
View Source
TimeSinceScheduled(ICommand)
Declaration
public TimeSpan TimeSinceScheduled(ICommand command)
Parameters
Returns
Type |
Description |
TimeSpan |
|
|
Improve this Doc
View Source
UnregisterSubsystem(ISubsystem[])
Declaration
public void UnregisterSubsystem(params ISubsystem[] subsystems)
Parameters
Events
|
Improve this Doc
View Source
OnCommandExecute
Declaration
public event Action<ICommand>? OnCommandExecute
Event Type
|
Improve this Doc
View Source
OnCommandFinish
Declaration
public event Action<ICommand>? OnCommandFinish
Event Type
|
Improve this Doc
View Source
OnCommandInitialize
Declaration
public event Action<ICommand>? OnCommandInitialize
Event Type
|
Improve this Doc
View Source
OnCommandInterrupt
Declaration
public event Action<ICommand>? OnCommandInterrupt
Event Type
Explicit Interface Implementations
|
Improve this Doc
View Source
ISendable.InitSendable(ISendableBuilder)
Declaration
void ISendable.InitSendable(ISendableBuilder builder)
Parameters
Implements
IDisposable