Class InstantCommand

    • Method Detail

      • isFinished

        protected boolean isFinished()
        Description copied from class: Command
        Returns whether this command is finished. If it is, then the command will be removed and end() will be called.

        It may be useful for a team to reference the isTimedOut() method for time-sensitive commands.

        Returning false will result in the command never ending automatically. It may still be canceled manually or interrupted by another command. Returning true will result in the command executing once and finishing immediately. We recommend using InstantCommand for this.

        Specified by:
        isFinished in class Command
        Returns:
        whether this command is finished.
        See Also:
        isTimedOut()
      • _initialize

        protected void _initialize()
        Trigger the stored function.

        Called just before this Command runs the first time.