TimedCommand

class commands1.TimedCommand(*args, **kwargs)

Bases: commands1._impl._commands_v1.command.Command

A TimedCommand will wait for a timeout before finishing.

TimedCommand is used to execute a command for a given amount of time.

This class is provided by the OldCommands VendorDep

Overloaded function.

  1. __init__(self: commands1._impl._commands_v1.command.TimedCommand, name: str, timeout: seconds) -> None

Creates a new TimedCommand with the given name and timeout.

Parameters
  • name – the name of the command

  • timeout – the time before this command “times out”

  1. __init__(self: commands1._impl._commands_v1.command.TimedCommand, timeout: seconds) -> None

Creates a new WaitCommand with the given timeout.

Parameters

timeout – the time before this command “times out”

  1. __init__(self: commands1._impl._commands_v1.command.TimedCommand, name: str, timeout: seconds, subsystem: commands1._impl._commands_v1.command.Subsystem) -> None

Creates a new TimedCommand with the given name and timeout.

Parameters
  • name – the name of the command

  • timeout – the time before this command “times out”

  • subsystem – the subsystem that the command requires

  1. __init__(self: commands1._impl._commands_v1.command.TimedCommand, timeout: seconds, subsystem: commands1._impl._commands_v1.command.Subsystem) -> None

Creates a new WaitCommand with the given timeout.

Parameters
  • timeout – the time before this command “times out”

  • subsystem – the subsystem that the command requires

isFinished() bool

Ends command when timed out.