Show / Hide Table of Contents

Class CommandScheduler

Inheritance
Object
CommandScheduler
Implements
ISendable
IDisposable
Namespace: WPILib2.Commands
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
Type Description
CommandScheduler

Methods

| Improve this Doc View Source

AddButton(Action)

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
public void CancelAll()
| Improve this Doc View Source

ClearButtons()

Declaration
public void ClearButtons()
| Improve this Doc View Source

Disable()

Declaration
public void Disable()
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Enable()

Declaration
public void Enable()
| Improve this Doc View Source

GetDefaultCommand(ISubsystem)

Declaration
public ICommand GetDefaultCommand(ISubsystem subsystem)
Parameters
Type Name Description
ISubsystem subsystem
Returns
Type Description
ICommand
| Improve this Doc View Source

IsScheduled(ICommand[])

Declaration
public bool IsScheduled(params ICommand[] commands)
Parameters
Type Name Description
ICommand[] commands
Returns
Type Description
Boolean
| Improve this Doc View Source

RegisterSubsystem(ISubsystem[])

Declaration
public void RegisterSubsystem(params ISubsystem[] subsystems)
Parameters
Type Name Description
ISubsystem[] subsystems
| Improve this Doc View Source

Requiring(ISubsystem)

Declaration
public ICommand Requiring(ISubsystem subsystem)
Parameters
Type Name Description
ISubsystem subsystem
Returns
Type Description
ICommand
| Improve this Doc View Source

Run()

Declaration
public void Run()
| Improve this Doc View Source

Schedule(Boolean, ICommand[])

Declaration
public void Schedule(bool interruptible, params ICommand[] commands)
Parameters
Type Name Description
Boolean interruptible
ICommand[] commands
| 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
Type Name Description
ISubsystem subsystem
ICommand defaultCommand
| Improve this Doc View Source

TimeSinceScheduled(ICommand)

Declaration
public TimeSpan TimeSinceScheduled(ICommand command)
Parameters
Type Name Description
ICommand command
Returns
Type Description
TimeSpan
| Improve this Doc View Source

UnregisterSubsystem(ISubsystem[])

Declaration
public void UnregisterSubsystem(params ISubsystem[] subsystems)
Parameters
Type Name Description
ISubsystem[] subsystems

Events

| Improve this Doc View Source

OnCommandExecute

Declaration
public event Action<ICommand>? OnCommandExecute
Event Type
Type Description
Nullable<Action<ICommand>>
| Improve this Doc View Source

OnCommandFinish

Declaration
public event Action<ICommand>? OnCommandFinish
Event Type
Type Description
Nullable<Action<ICommand>>
| Improve this Doc View Source

OnCommandInitialize

Declaration
public event Action<ICommand>? OnCommandInitialize
Event Type
Type Description
Nullable<Action<ICommand>>
| Improve this Doc View Source

OnCommandInterrupt

Declaration
public event Action<ICommand>? OnCommandInterrupt
Event Type
Type Description
Nullable<Action<ICommand>>

Explicit Interface Implementations

| Improve this Doc View Source

ISendable.InitSendable(ISendableBuilder)

Declaration
void ISendable.InitSendable(ISendableBuilder builder)
Parameters
Type Name Description
ISendableBuilder builder

Implements

ISendable
IDisposable
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 RobotDotNet