Class RunCommand

    • Field Detail

      • m_toRun

        protected final Runnable m_toRun
    • Constructor Detail

      • RunCommand

        public RunCommand​(Runnable toRun,
                          Subsystem... requirements)
        Creates a new RunCommand. The Runnable will be run continuously until the command ends. Does not run when disabled.
        toRun - the Runnable to run
        requirements - the subsystems to require
    • Method Detail

      • execute

        public void execute()
        Description copied from interface: Command
        The main body of a command. Called repeatedly while the command is scheduled.