TimedCommand

class wpilib.command.TimedCommand(name, timeoutInSeconds)[source]

Bases: wpilib.command.Command

A command that runs for a set period of time.

Instantiates a TimedCommand with the given name and timeout.

Parameters:
  • name – the name of the command
  • timeoutInSeconds – the time the command takes to run
isFinished()[source]

Ends command when timed out.