Class SystemTestCommand

  • All Implemented Interfaces:
    edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj2.command.Command

    public class SystemTestCommand
    extends edu.wpi.first.wpilibj2.command.CommandBase
    Runs all SystemTests that have been queued with SystemTest.register(SystemTest). The interactive test interface is on a Shuffleboard tab called "System Tests" where users can view the current test, and pass/fail interactive system tests.
    • Field Summary

      • Fields inherited from class edu.wpi.first.wpilibj2.command.CommandBase

        m_requirements
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemTestCommand()
      Creates new SystemTestCommand.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void end​(boolean interrupted)  
      void execute()  
      void initialize()  
      boolean isFinished()  
      void reset()
      Resets the status of all system tests to incomplete.
      • Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase

        addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem, withName
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface edu.wpi.first.wpilibj2.command.Command

        alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, hasRequirement, isScheduled, perpetually, raceWith, runsWhenDisabled, schedule, schedule, until, withInterrupt, withTimeout
    • Constructor Detail

      • SystemTestCommand

        public SystemTestCommand()
        Creates new SystemTestCommand. This should only be called in LightningRobot.testInit().
    • Method Detail

      • reset

        public void reset()
        Resets the status of all system tests to incomplete.
      • initialize

        public void initialize()
      • execute

        public void execute()
      • end

        public void end​(boolean interrupted)
      • isFinished

        public boolean isFinished()