InstantCommand¶
- class commands1.InstantCommand(*args, **kwargs)¶
Bases:
commands1._impl._commands_v1.command.Command
This command will execute once, then finish immediately afterward.
Subclassing InstantCommand is shorthand for returning true from IsFinished().
This class is provided by the OldCommands VendorDep
Overloaded function.
__init__(self: commands1._impl._commands_v1.command.InstantCommand, name: str) -> None
Creates a new InstantCommand with the given name.
- Parameters
name – The name for this command
__init__(self: commands1._impl._commands_v1.command.InstantCommand, subsystem: commands1._impl._commands_v1.command.Subsystem) -> None
Creates a new InstantCommand with the given requirement.
- Parameters
subsystem – The subsystem that the command requires
__init__(self: commands1._impl._commands_v1.command.InstantCommand, name: str, subsystem: commands1._impl._commands_v1.command.Subsystem) -> None
Creates a new InstantCommand with the given name.
- Parameters
name – The name for this command
subsystem – The subsystem that the command requires
__init__(self: commands1._impl._commands_v1.command.InstantCommand, func: Callable[[], None]) -> None
Create a command that calls the given function when run.
- Parameters
func – The function to run when Initialize() is run.
__init__(self: commands1._impl._commands_v1.command.InstantCommand, subsystem: commands1._impl._commands_v1.command.Subsystem, func: Callable[[], None]) -> None
Create a command that calls the given function when run.
- Parameters
subsystem – The subsystems that this command runs on.
func – The function to run when Initialize() is run.
__init__(self: commands1._impl._commands_v1.command.InstantCommand, name: str, func: Callable[[], None]) -> None
Create a command that calls the given function when run.
- Parameters
name – The name of the command.
func – The function to run when Initialize() is run.
__init__(self: commands1._impl._commands_v1.command.InstantCommand, name: str, subsystem: commands1._impl._commands_v1.command.Subsystem, func: Callable[[], None]) -> None
Create a command that calls the given function when run.
- Parameters
name – The name of the command.
subsystem – The subsystems that this command runs on.
func – The function to run when Initialize() is run.
__init__(self: commands1._impl._commands_v1.command.InstantCommand) -> None
- isFinished() bool ¶